Spaces:
Running
Running
Update app.py (#11)
Browse files- Update app.py (8cf0c3592f717c77740267c8efb432b631900ae0)
Co-authored-by: Jagmeet Minhas <[email protected]>
app.py
CHANGED
@@ -196,7 +196,7 @@ if uploaded_file is not None:
|
|
196 |
try:
|
197 |
# ONLY THIS PART CHANGED:
|
198 |
# Use the RAG calling method instead of the OpenAI function
|
199 |
-
client_rag = Client("https://
|
200 |
result = client_rag.predict(query=f"What's a healthy {top_food} recipe, and why is it healthy?", api_name="/get_response")
|
201 |
st.write(result)
|
202 |
except OpenAIError as e:
|
|
|
196 |
try:
|
197 |
# ONLY THIS PART CHANGED:
|
198 |
# Use the RAG calling method instead of the OpenAI function
|
199 |
+
client_rag = Client("https://9a8ccf4a3d4ad96ccf.gradio.live/")
|
200 |
result = client_rag.predict(query=f"What's a healthy {top_food} recipe, and why is it healthy?", api_name="/get_response")
|
201 |
st.write(result)
|
202 |
except OpenAIError as e:
|