Spaces:
Sleeping
Sleeping
Commit
·
275de4b
1
Parent(s):
859373b
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
import pandas as pd
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|