Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -397,8 +397,6 @@ with col2:
|
|
397 |
st.title('RAG Recipe')
|
398 |
if not query and not uploaded_image and not recipe_submit:
|
399 |
display_response(sample_RAG)
|
400 |
-
if uploaded_image and not recipe_submit:
|
401 |
-
st.warning("Please click 'Chain Recipe' to generate a recipe from your uploaded image!", icon=':material/no_meals:')
|
402 |
|
403 |
# Image Classification Section
|
404 |
if recipe_submit and uploaded_image:
|
@@ -451,7 +449,7 @@ if recipe_submit and uploaded_image:
|
|
451 |
for spine in ax.spines.values():
|
452 |
spine.set_visible(False)
|
453 |
|
454 |
-
|
455 |
|
456 |
st.pyplot(fig) # Display the plot
|
457 |
|
|
|
397 |
st.title('RAG Recipe')
|
398 |
if not query and not uploaded_image and not recipe_submit:
|
399 |
display_response(sample_RAG)
|
|
|
|
|
400 |
|
401 |
# Image Classification Section
|
402 |
if recipe_submit and uploaded_image:
|
|
|
449 |
for spine in ax.spines.values():
|
450 |
spine.set_visible(False)
|
451 |
|
452 |
+
ax.set_title(class_names[0], color='white', fontsize=16, fontweight='bold', ha='center')
|
453 |
|
454 |
st.pyplot(fig) # Display the plot
|
455 |
|