Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,9 @@ def analyze_mood(user_input):
|
|
22 |
|
23 |
# Return the mood and the suggestion for the user
|
24 |
return "Your mood is: " + mood, suggestion
|
|
|
|
|
|
|
25 |
|
26 |
-
inputs = gr.Textbox(label="How are you feeling today?", placeholder="Type your thoughts here...")
|
27 |
-
outputs = gr.Textbox(label="Mood and Suggestion")
|
28 |
|
29 |
gr.Interface(fn=analyze_mood, inputs=inputs, outputs=outputs, title="Mood Analyzer").launch()
|
|
|
22 |
|
23 |
# Return the mood and the suggestion for the user
|
24 |
return "Your mood is: " + mood, suggestion
|
25 |
+
|
26 |
+
inputs = gr.Textbox(label="How are you feeling today?", placeholder="Type your thoughts here...")
|
27 |
+
outputs = gr.Textbox(label="Mood and Suggestion")
|
28 |
|
|
|
|
|
29 |
|
30 |
gr.Interface(fn=analyze_mood, inputs=inputs, outputs=outputs, title="Mood Analyzer").launch()
|