Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ tokenizer = AutoTokenizer.from_pretrained("nqcccccc/phobert-social-media-text-cl
|
|
| 5 |
model = AutoModelForSequenceClassification.from_pretrained("nqcccccc/phobert-social-media-text-classify")
|
| 6 |
|
| 7 |
# Create a sentiment analysis pipeline with the explicit tokenizer
|
| 8 |
-
classifier = pipeline("text-classification", model=model)
|
| 9 |
|
| 10 |
# สร้างหน้าเว็บ Streamlit
|
| 11 |
st.title("Spam Detection App")
|
|
|
|
| 5 |
model = AutoModelForSequenceClassification.from_pretrained("nqcccccc/phobert-social-media-text-classify")
|
| 6 |
|
| 7 |
# Create a sentiment analysis pipeline with the explicit tokenizer
|
| 8 |
+
classifier = pipeline("text-classification", model=model,tokenizer=tokenizer)
|
| 9 |
|
| 10 |
# สร้างหน้าเว็บ Streamlit
|
| 11 |
st.title("Spam Detection App")
|