Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def get_ingredients_qwen(food_name):
|
|
48 |
st.title("Food Image Recognition with Ingredients")
|
49 |
|
50 |
# Add banner image
|
51 |
-
st.image("IR_IMAGE.png", caption="Food Recognition Model",
|
52 |
|
53 |
# Sidebar for model information
|
54 |
st.sidebar.title("Model Information")
|
@@ -61,7 +61,7 @@ uploaded_file = st.file_uploader("Choose a food image...", type=["jpg", "png", "
|
|
61 |
if uploaded_file is not None:
|
62 |
# Display the uploaded image
|
63 |
image = Image.open(uploaded_file)
|
64 |
-
st.image(image, caption="Uploaded Image",
|
65 |
st.write("Classifying...")
|
66 |
|
67 |
# Make predictions
|
@@ -80,4 +80,4 @@ if uploaded_file is not None:
|
|
80 |
st.error(f"Error generating ingredients: {e}")
|
81 |
|
82 |
# Footer
|
83 |
-
st.sidebar.markdown("
|
|
|
48 |
st.title("Food Image Recognition with Ingredients")
|
49 |
|
50 |
# Add banner image
|
51 |
+
st.image("IR_IMAGE.png", caption="Food Recognition Model", use_container_width=True)
|
52 |
|
53 |
# Sidebar for model information
|
54 |
st.sidebar.title("Model Information")
|
|
|
61 |
if uploaded_file is not None:
|
62 |
# Display the uploaded image
|
63 |
image = Image.open(uploaded_file)
|
64 |
+
st.image(image, caption="Uploaded Image", use_container_width=True)
|
65 |
st.write("Classifying...")
|
66 |
|
67 |
# Make predictions
|
|
|
80 |
st.error(f"Error generating ingredients: {e}")
|
81 |
|
82 |
# Footer
|
83 |
+
st.sidebar.markdown("Developed by Muhammad Hassan Butt.")
|