Spaces:
Sleeping
Sleeping
tonyliu404
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -515,7 +515,7 @@ if recipe_submit and uploaded_image:
|
|
515 |
"""
|
516 |
),
|
517 |
]
|
518 |
-
with col2, st.spinner():
|
519 |
if query:
|
520 |
# Call the OpenAI API
|
521 |
openAIresponse = llm.invoke(openAICall)
|
@@ -528,7 +528,7 @@ if recipe_submit and uploaded_image:
|
|
528 |
display_response(RAGresponse)
|
529 |
|
530 |
elif recipe_submit and query:
|
531 |
-
with col2, st.spinner():
|
532 |
response = get_response(query)
|
533 |
print(response)
|
534 |
display_response(response)
|
|
|
515 |
"""
|
516 |
),
|
517 |
]
|
518 |
+
with col2, st.spinner("Generating..."):
|
519 |
if query:
|
520 |
# Call the OpenAI API
|
521 |
openAIresponse = llm.invoke(openAICall)
|
|
|
528 |
display_response(RAGresponse)
|
529 |
|
530 |
elif recipe_submit and query:
|
531 |
+
with col2, st.spinner("Generating..."):
|
532 |
response = get_response(query)
|
533 |
print(response)
|
534 |
display_response(response)
|