Update app.py
Browse files
app.py
CHANGED
|
@@ -17,12 +17,11 @@ def classify_text(text):
|
|
| 17 |
|
| 18 |
|
| 19 |
interface = gr.Interface(fn=classify_text,
|
| 20 |
-
inputs
|
| 21 |
-
outputs=gr.outputs.Label(num_top_classes=4, label='Emotion
|
| 22 |
verbose=True,
|
| 23 |
title="Emotion Classifier",
|
| 24 |
theme='soft')
|
| 25 |
-
|
| 26 |
interface.launch()
|
| 27 |
|
| 28 |
|
|
|
|
| 17 |
|
| 18 |
|
| 19 |
interface = gr.Interface(fn=classify_text,
|
| 20 |
+
inputs=gr.inputs.Texbox(placeholder="Enter Text here", label='Input text',lines=5)),
|
| 21 |
+
outputs=gr.outputs.Label(num_top_classes=4, label='Emotion in the Text'),
|
| 22 |
verbose=True,
|
| 23 |
title="Emotion Classifier",
|
| 24 |
theme='soft')
|
|
|
|
| 25 |
interface.launch()
|
| 26 |
|
| 27 |
|