Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -12,11 +12,16 @@ def classify_text(text):
|
|
12 |
# Create the Gradio interface
|
13 |
interface = gr.Interface(
|
14 |
fn=classify_text,
|
15 |
-
inputs=gr.Textbox(
|
|
|
|
|
|
|
|
|
16 |
outputs=gr.Label(num_top_classes=5),
|
17 |
title="Emotion Classifier",
|
18 |
description="Enter a sentence to see its associated emotions and confidence scores.",
|
19 |
)
|
20 |
|
|
|
21 |
# Launch the app
|
22 |
interface.launch()
|
|
|
12 |
# Create the Gradio interface
|
13 |
interface = gr.Interface(
|
14 |
fn=classify_text,
|
15 |
+
inputs=gr.Textbox(
|
16 |
+
lines=2,
|
17 |
+
placeholder="Enter text to analyze emotions...",
|
18 |
+
value="I am thrilled to be a part of this amazing journey!"
|
19 |
+
),
|
20 |
outputs=gr.Label(num_top_classes=5),
|
21 |
title="Emotion Classifier",
|
22 |
description="Enter a sentence to see its associated emotions and confidence scores.",
|
23 |
)
|
24 |
|
25 |
+
|
26 |
# Launch the app
|
27 |
interface.launch()
|