modified app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ st.write("Upload an image and ask a question about it.")
|
|
| 21 |
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "png", "jpeg"])
|
| 22 |
if uploaded_file is not None:
|
| 23 |
image = Image.open(uploaded_file).convert("RGB")
|
| 24 |
-
st.image(image, caption="Uploaded Image",
|
| 25 |
|
| 26 |
question = st.text_input("Ask a question about the image:")
|
| 27 |
if question:
|
|
|
|
| 21 |
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "png", "jpeg"])
|
| 22 |
if uploaded_file is not None:
|
| 23 |
image = Image.open(uploaded_file).convert("RGB")
|
| 24 |
+
st.image(image, caption="Uploaded Image", use_container_width=True)
|
| 25 |
|
| 26 |
question = st.text_input("Ask a question about the image:")
|
| 27 |
if question:
|