Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
| 3 |
|
| 4 |
# Load the pre-trained model for inference
|
| 5 |
model_name = "devaprobs/amharic-hate-speech-detection"
|
| 6 |
-
classifier = pipeline("text-classification", model=
|
| 7 |
|
| 8 |
# Configure the Streamlit page
|
| 9 |
st.set_page_config(page_title="Amharic Hate Speech Detector", page_icon="🕵️♂️", layout="centered")
|
|
|
|
| 3 |
|
| 4 |
# Load the pre-trained model for inference
|
| 5 |
model_name = "devaprobs/amharic-hate-speech-detection"
|
| 6 |
+
classifier = pipeline("text-classification", model=model_name)
|
| 7 |
|
| 8 |
# Configure the Streamlit page
|
| 9 |
st.set_page_config(page_title="Amharic Hate Speech Detector", page_icon="🕵️♂️", layout="centered")
|