Spaces:
Sleeping
Sleeping
Update app.py
#11
by JagmeetMinhas22 - opened
195 unmodified lines196197198199199200201202195 unmodified lines try: # ONLY THIS PART CHANGED: # Use the RAG calling method instead of the OpenAI function client_rag = Client("https://bcf51b6785b84b4860.gradio.live/") client_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