cirimus commited on
Commit
f470f4e
·
verified ·
1 Parent(s): 7f10cd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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(lines=2, placeholder="Enter text to analyze emotions..."),
 
 
 
 
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()