Update app.py
Browse files
app.py
CHANGED
|
@@ -2,8 +2,8 @@ import gradio as gr
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# Load your model from Hugging Face
|
| 5 |
-
model_name = "
|
| 6 |
-
classifier = pipeline("
|
| 7 |
|
| 8 |
def classify_text(text):
|
| 9 |
return classifier(text)
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# Load your model from Hugging Face
|
| 5 |
+
model_name = "HaryaniAnjali/Llama_3.2_Trained_Emotion"
|
| 6 |
+
classifier = pipeline("Emotion-Classification", model=model_name)
|
| 7 |
|
| 8 |
def classify_text(text):
|
| 9 |
return classifier(text)
|