Spaces:
Sleeping
Sleeping
Update app.py
#11
by JagmeetMinhas22 - opened
195 unmodified lines196197198199200201202195 unmodified linestry:# ONLY THIS PART CHANGED:# Use the RAG calling method instead of the OpenAI functionclient_rag = Client("https://bcf51b6785b84b4860.gradio.live/")result = client_rag.predict(query=f"What's a healthy {top_food} recipe, and why is it healthy?", api_name="/get_response")st.write(result)except OpenAIError as e:195 unmodified lines196197198199200201202195 unmodified linestry:# ONLY THIS PART CHANGED:# Use the RAG calling method instead of the OpenAI functionclient_rag = Client("https://9a8ccf4a3d4ad96ccf.gradio.live/")result = client_rag.predict(query=f"What's a healthy {top_food} recipe, and why is it healthy?", api_name="/get_response")st.write(result)except OpenAIError as e:
app.py+1-1