Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
| 4 |
|
| 5 |
pipe = pipeline("text-classification", model = "Pavan97/Emotion_Analysis" )
|
| 6 |
def predict(input_text):
|
| 7 |
-
return
|
| 8 |
|
| 9 |
iface = gr.Interface(fn = predict,
|
| 10 |
inputs = "text",
|
|
|
|
| 4 |
|
| 5 |
pipe = pipeline("text-classification", model = "Pavan97/Emotion_Analysis" )
|
| 6 |
def predict(input_text):
|
| 7 |
+
return pipe(input_text)
|
| 8 |
|
| 9 |
iface = gr.Interface(fn = predict,
|
| 10 |
inputs = "text",
|