Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def predict_and_display(image_path, model):
|
|
100 |
_, predicted = torch.max(outputs, 1)
|
101 |
|
102 |
# Display the image and prediction
|
103 |
-
st.image(image, caption='Uploaded Image',
|
104 |
st.write(f"Predicted Digit: {predicted.item()}")
|
105 |
|
106 |
# Streamlit UI
|
|
|
100 |
_, predicted = torch.max(outputs, 1)
|
101 |
|
102 |
# Display the image and prediction
|
103 |
+
st.image(image, caption='Uploaded Image', use_container_width=True)
|
104 |
st.write(f"Predicted Digit: {predicted.item()}")
|
105 |
|
106 |
# Streamlit UI
|