JagmeetMinhas22 commited on
Commit
9f66a01
·
verified ·
1 Parent(s): f6d41de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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.")