Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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()
|