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