DreamStream-1 commited on
Commit
3efaeb9
·
verified ·
1 Parent(s): 94c0e93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
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 Detected"),
230
- gr.DataFrame(label="Suggestions for Wellness"),
231
- gr.DataFrame(label="Nearby Wellness Professionals")
 
232
  ],
233
- live=True
 
 
234
  )
235
 
236
- # Launch the interface
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