Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ initial_caption = pipeline('image-to-text', model="Salesforce/blip-image-caption
|
|
11 |
uploaded_image = st.file_uploader("Upload an image", type=["png", "jpg", "jpeg"])
|
12 |
if uploaded_image is not None:
|
13 |
image= Image.open(uploaded_image)
|
14 |
-
st.image(image, caption="Uploaded Image", use_column_width=
|
15 |
|
16 |
# Generate the caption
|
17 |
if st.button("Generate Caption"):
|
|
|
11 |
uploaded_image = st.file_uploader("Upload an image", type=["png", "jpg", "jpeg"])
|
12 |
if uploaded_image is not None:
|
13 |
image= Image.open(uploaded_image)
|
14 |
+
st.image(image, caption="Uploaded Image", use_column_width=False)
|
15 |
|
16 |
# Generate the caption
|
17 |
if st.button("Generate Caption"):
|