Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
|
| 4 |
model_name="nebiyu29/hate_classifier"
|
| 5 |
tokenizer=AutoTokenizer.from_pretrained(model_name)
|
| 6 |
-
model=
|
| 7 |
|
| 8 |
#this where the model is active and we need to make the gradiends in active
|
| 9 |
model.eval()
|
|
|
|
| 3 |
|
| 4 |
model_name="nebiyu29/hate_classifier"
|
| 5 |
tokenizer=AutoTokenizer.from_pretrained(model_name)
|
| 6 |
+
model=AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 7 |
|
| 8 |
#this where the model is active and we need to make the gradiends in active
|
| 9 |
model.eval()
|