Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ uploaded_image = st.file_uploader("Choose an Image", type=["jpg", "jpeg", "png"]
|
|
| 50 |
# If an image is uploaded
|
| 51 |
if uploaded_image is not None:
|
| 52 |
image = Image.open(uploaded_image)
|
| 53 |
-
st.image(image, caption="Uploaded Image",
|
| 54 |
|
| 55 |
# Generate caption when button is pressed
|
| 56 |
if st.button("Generate Caption"):
|
|
|
|
| 50 |
# If an image is uploaded
|
| 51 |
if uploaded_image is not None:
|
| 52 |
image = Image.open(uploaded_image)
|
| 53 |
+
st.image(image, caption="Uploaded Image", use_container_width=True) # <-- FIXED DEPRECATED PARAMETER
|
| 54 |
|
| 55 |
# Generate caption when button is pressed
|
| 56 |
if st.button("Generate Caption"):
|