indobert / app.py
ibra
Create app.py
2f4b95c verified
raw
history blame contribute delete
229 Bytes
from transformers import pipeline
# Memuat model IndoBERT
classifier = pipeline("text-classification", model="indobenchmark/indobert-base-p1")
# Fungsi untuk memproses input
def classify_text(text):
return classifier(text)