Update app.py
Browse files
app.py
CHANGED
|
@@ -16,6 +16,7 @@ def predict_emotion(text):
|
|
| 16 |
|
| 17 |
# Gradio UI
|
| 18 |
iface = gr.Interface(
|
|
|
|
| 19 |
inputs=gr.Textbox(lines=2, placeholder="Enter a sentence..."),
|
| 20 |
outputs=[
|
| 21 |
gr.Label(label="Predicted Emotion"),
|
|
|
|
| 16 |
|
| 17 |
# Gradio UI
|
| 18 |
iface = gr.Interface(
|
| 19 |
+
fn=predict_emotion,
|
| 20 |
inputs=gr.Textbox(lines=2, placeholder="Enter a sentence..."),
|
| 21 |
outputs=[
|
| 22 |
gr.Label(label="Predicted Emotion"),
|