abdulsamad commited on
Commit
275de4b
·
1 Parent(s): 859373b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -1,6 +1,11 @@
1
  import streamlit as st
2
- import pandas as pd
3
 
4
- uploaded_file = st.file_uploader("Choose a file")
5
- st.text_area(uploaded_file)
 
 
 
 
 
 
6
 
 
1
  import streamlit as st
 
2
 
3
+
4
+ # Create a file uploader widget
5
+ file = st.file_uploader("Upload an image", type=["jpg", "jpeg", "png"])
6
+
7
+ # Display the uploaded image
8
+ if file is not None:
9
+ image = file.read()
10
+ st.image(image, caption='Uploaded Image', use_column_width=True)
11