Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -26,7 +26,7 @@ uploaded_file = st.sidebar.file_uploader("Upload Your Image", type= ["jpg" , "jp
|
|
| 26 |
|
| 27 |
if uploaded_file:
|
| 28 |
image = Image.open(uploaded_file).convert("RGB")
|
| 29 |
-
image_path =
|
| 30 |
image.save(image_path)
|
| 31 |
|
| 32 |
# st.image(image, caption="uploaded image" , use_container_width=True)
|
|
|
|
| 26 |
|
| 27 |
if uploaded_file:
|
| 28 |
image = Image.open(uploaded_file).convert("RGB")
|
| 29 |
+
image_path = os.path.join(upload_dir, uploaded_file.name)
|
| 30 |
image.save(image_path)
|
| 31 |
|
| 32 |
# st.image(image, caption="uploaded image" , use_container_width=True)
|