haripriyaram commited on
Commit
9976a30
·
verified ·
1 Parent(s): f93270b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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"),