Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,8 @@ import streamlit as st
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# Load the pre-trained model for inference
|
| 5 |
-
model_name = "
|
|
|
|
| 6 |
classifier = pipeline("text-classification", model=model_name)
|
| 7 |
|
| 8 |
# Configure the Streamlit page
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# Load the pre-trained model for inference
|
| 5 |
+
model_name = "Davlan/bert-base-multilingual-cased-finetuned-amharic"
|
| 6 |
+
#model_name = "devaprobs/amharic-hate-speech-detection"
|
| 7 |
classifier = pipeline("text-classification", model=model_name)
|
| 8 |
|
| 9 |
# Configure the Streamlit page
|