Ashrafb commited on
Commit
2d3135b
·
1 Parent(s): f9082d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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