Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def main():
|
|
| 29 |
uploaded_image = st.file_uploader("Upload an image", type=["jpg", "jpeg", "png"])
|
| 30 |
|
| 31 |
if uploaded_image is not None:
|
| 32 |
-
image = Image.open(
|
| 33 |
st.image(image, caption="Uploaded Image", use_column_width=True)
|
| 34 |
|
| 35 |
# Stage 1: Image to Text
|
|
|
|
| 29 |
uploaded_image = st.file_uploader("Upload an image", type=["jpg", "jpeg", "png"])
|
| 30 |
|
| 31 |
if uploaded_image is not None:
|
| 32 |
+
image = Image.open(uploaded_image).convert("RGB")
|
| 33 |
st.image(image, caption="Uploaded Image", use_column_width=True)
|
| 34 |
|
| 35 |
# Stage 1: Image to Text
|