FahadAlam commited on
Commit
238e0f2
1 Parent(s): b413d58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,5 +12,5 @@ def detect_emotions(emotion_input):
12
 
13
  examples = [["I am excited to announce that I have been promoted"], ["Sorry for the late reply"]]
14
 
15
- demo = gr.Interface(fn=detect_emotions, inputs="text", outputs="label", title="Emotion Detector", examples=examples)
16
  demo.launch()
 
12
 
13
  examples = [["I am excited to announce that I have been promoted"], ["Sorry for the late reply"]]
14
 
15
+ demo = gr.Interface(fn=detect_emotions, inputs=gr.Textbox(placeholder="Enter text here", label="Input"), outputs=gr.Label(label="Emotion"), examples=examples)
16
  demo.launch()