Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -224,14 +224,17 @@ iface = gr.Interface(
|
|
224 |
gr.State() # One state input
|
225 |
],
|
226 |
outputs=[
|
227 |
-
gr.Chatbot(label="Chat History"),
|
228 |
gr.Textbox(label="Sentiment Analysis"),
|
229 |
-
gr.Textbox(label="Emotion
|
230 |
-
gr.
|
231 |
-
gr.
|
|
|
232 |
],
|
233 |
-
|
|
|
|
|
234 |
)
|
235 |
|
236 |
-
# Launch
|
237 |
-
iface.launch()
|
|
|
224 |
gr.State() # One state input
|
225 |
],
|
226 |
outputs=[
|
227 |
+
gr.Chatbot(label="Chat History", type="messages"), # Set type="messages" as per the warning
|
228 |
gr.Textbox(label="Sentiment Analysis"),
|
229 |
+
gr.Textbox(label="Detected Emotion"),
|
230 |
+
gr.Dataframe(label="Suggestions & Resources"),
|
231 |
+
gr.Dataframe(label="Nearby Wellness Professionals"), # Display results as a table
|
232 |
+
gr.State() # One state output
|
233 |
],
|
234 |
+
allow_flagging="never",
|
235 |
+
title="Mental Wellbeing App with AI Assistance",
|
236 |
+
description="This app provides a mental health chatbot, sentiment analysis, emotion detection, and wellness professional search functionality.",
|
237 |
)
|
238 |
|
239 |
+
# Launch Gradio interface
|
240 |
+
iface.launch(debug=True, share=True) # Set share=True to create a public link
|