Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -85,6 +85,8 @@ if uploaded_file is not None:
|
|
85 |
client = Client("https://4fbc334ff05ec351c8.gradio.live/")
|
86 |
result = client.predict(query=f"What's a healthy {top_food} recipe, and why is it healthy?", api_name="/get_response")
|
87 |
st.write(result)
|
|
|
|
|
88 |
|
89 |
# Footer
|
90 |
st.sidebar.markdown("Developed by Muhammad Hassan Butt.")
|
|
|
85 |
client = Client("https://4fbc334ff05ec351c8.gradio.live/")
|
86 |
result = client.predict(query=f"What's a healthy {top_food} recipe, and why is it healthy?", api_name="/get_response")
|
87 |
st.write(result)
|
88 |
+
except Exception as e:
|
89 |
+
st.error(f"Unable to contact RAG: {e}")
|
90 |
|
91 |
# Footer
|
92 |
st.sidebar.markdown("Developed by Muhammad Hassan Butt.")
|