tonyliu404 commited on
Commit
911f461
·
verified ·
1 Parent(s): f8ba544

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -383,11 +383,12 @@ with col1:
383
  if not uploaded_image:
384
  placeholder = Image.open("dish-placeholder.jpg")
385
  st.image(placeholder, caption="Placeholder Image.", use_container_width=True)
386
- st.write("Top Predictions:")
387
  st.markdown(f"*Donuts*: 98.11%")
388
  with col2:
389
  st.title('RAG Recipe Result')
390
- display_response (sample_RAG)
 
391
 
392
  # Image Classification Section
393
  if uploaded_image and recipe_submit:
 
383
  if not uploaded_image:
384
  placeholder = Image.open("dish-placeholder.jpg")
385
  st.image(placeholder, caption="Placeholder Image.", use_container_width=True)
386
+ st.header("Top Predictions:")
387
  st.markdown(f"*Donuts*: 98.11%")
388
  with col2:
389
  st.title('RAG Recipe Result')
390
+ if not query:
391
+ display_response(sample_RAG)
392
 
393
  # Image Classification Section
394
  if uploaded_image and recipe_submit: