Skip to content

HAJAR-Enterprise/ML-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

IndoBERT Judi Online API Untuk HAJAR

API berbasis Flask untuk klasifikasi komentar berbahasa Indonesia terkait judi online, menggunakan model IndoBERT yang telah di-fine-tune.

πŸš€ Fitur

  • Model klasifikasi berbasis IndoBERT
  • Preprocessing teks bahasa Indonesia
  • REST API sederhana (/predict)
  • Mengembalikan label dan confidence score

🧠 Model

  • Model: fhru/indobert-judi-online-2
  • Framework: TensorFlow + HuggingFace Transformers
  • Arsitektur: IndoBERT (BERT pretrained untuk Bahasa Indonesia)

πŸ“ Struktur Proyek

.
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ main.py
β”‚   β”œβ”€β”€ utils.py
β”‚   └── requirements.txt
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ .dockerignore
└── README.md

βš™οΈ Instalasi Lokal

  1. Clone repository:

    git clone https://github.com/HAJAR-Enterprise/ML-API.git
    cd ML_API
  2. Build Docker image:

    docker build -t indobert-api .
  3. Jalankan image lokal:

    docker run -p 8080:8080 indobert-api

πŸ“‘ API Endpoint

POST /predict

Prediksi apakah komentar mengandung unsur judi online.

πŸ“₯ Contoh Request

[
  {
    "commentId": "abc123",
    "text": "main slot gacor gampang maxwin"
  },
  {
    "commentId": "xyz789",
    "text": "makasih infonya"
  }
]

πŸ“€ Contoh Response

[
  {
    "commentId": "abc123",
    "text": "main slot gacor gampang maxwin",
    "label": "judi",
    "confidence": 0.9845
  },
  {
    "commentId": "xyz789",
    "text": "makasih infonya",
    "label": "normal",
    "confidence": 0.9968
  }
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •