razanalsulami commited on
Commit
18faac8
β€’
1 Parent(s): 4a094f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,12 +21,12 @@ def analyze_mood(user_input):
21
  mood = "Sad"
22
  suggestion = "Try to talk to someone, or take a break πŸ’‘"
23
 
24
- # Return mood and suggestion
25
- return "Your mood is: " + mood, suggestion
26
 
27
  # Set up Gradio inputs and outputs
28
  inputs = gr.Textbox(label="How are you feeling today?", placeholder="Type your thoughts here...")
29
  outputs = gr.Textbox(label="Mood and Suggestion")
30
 
31
  # Launch the Gradio interface
32
- gr.Interface(fn=analyze_mood, inputs=inputs, outputs=outputs, title="Mood Analyzer").launch()
 
21
  mood = "Sad"
22
  suggestion = "Try to talk to someone, or take a break πŸ’‘"
23
 
24
+ # Return mood and suggestion without parentheses and quotes
25
+ return "Your mood is: " + mood + ". " + suggestion
26
 
27
  # Set up Gradio inputs and outputs
28
  inputs = gr.Textbox(label="How are you feeling today?", placeholder="Type your thoughts here...")
29
  outputs = gr.Textbox(label="Mood and Suggestion")
30
 
31
  # Launch the Gradio interface
32
+ gr.Interface(fn=analyze_mood, inputs=inputs, outputs=outputs, title="Mood Analyzer").launch()