Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,9 @@ def main():
|
|
| 11 |
# Read the image file
|
| 12 |
image_data = uploaded_file.read()
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
# Convert image data to base64 string
|
| 15 |
image_base64 = base64.b64encode(image_data).decode('utf-8')
|
| 16 |
|
|
|
|
| 11 |
# Read the image file
|
| 12 |
image_data = uploaded_file.read()
|
| 13 |
|
| 14 |
+
# Display the uploaded image
|
| 15 |
+
st.image(image_data, caption="Uploaded Image.", use_column_width=True)
|
| 16 |
+
|
| 17 |
# Convert image data to base64 string
|
| 18 |
image_base64 = base64.b64encode(image_data).decode('utf-8')
|
| 19 |
|