Spaces:
Build error
Build error
Update app.py
Browse files
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",
|
| 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()
|