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