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