DreamStream-1 commited on
Commit
287d313
·
verified ·
1 Parent(s): f523b13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -189,7 +189,8 @@ def gradio_interface(message, location, state):
189
  # Stage 4: Search for Wellness Professionals
190
  wellness_results = search_wellness_professionals(location)
191
 
192
- return history, sentiment, emotion, suggestions, wellness_results
 
193
 
194
  # Gradio interface setup
195
  iface = gr.Interface(
@@ -214,5 +215,5 @@ iface = gr.Interface(
214
 
215
  # Launch Gradio interface
216
  if __name__ == "__main__":
217
- iface.launch(debug=True)
218
 
 
189
  # Stage 4: Search for Wellness Professionals
190
  wellness_results = search_wellness_professionals(location)
191
 
192
+ # Return the 6 values required by Gradio
193
+ return history, sentiment, emotion, suggestions, wellness_results, history # Last 'history' is for state
194
 
195
  # Gradio interface setup
196
  iface = gr.Interface(
 
215
 
216
  # Launch Gradio interface
217
  if __name__ == "__main__":
218
+ iface.launch(debug=True, share=True) # Set share=True to create a public link
219