Spaces:
Running
Running
Update app.py
Browse files
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:
|