Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
###
|
| 5 |
#####
|
| 6 |
import streamlit as st
|
| 7 |
-
import
|
| 8 |
|
| 9 |
#####
|
| 10 |
###
|
|
@@ -42,12 +42,9 @@ with row1_col2:
|
|
| 42 |
_, row2_col2, row2_col3, row2_col4, row2_col5, _ = st.columns([8,3,3,3,3,8])
|
| 43 |
_, row3_col2, row3_col3, row3_col4, row3_col5, _ = st.columns([8,3,3,3,3,8])
|
| 44 |
|
| 45 |
-
st.write("Current Working Directory:", os.getcwd())
|
| 46 |
-
st.write("Files in directory:", os.listdir('/home/user/app/test/'))
|
| 47 |
-
|
| 48 |
image_path = "/home/user/app/test/"
|
| 49 |
with row2_col2:
|
| 50 |
-
st.image(image_path + "IMG_5356.JPG", use_column_width=True)
|
| 51 |
with row3_col2:
|
| 52 |
st.image(image_path + "IMG_5357.JPG", use_column_width=True)
|
| 53 |
with row2_col3:
|
|
|
|
| 4 |
###
|
| 5 |
#####
|
| 6 |
import streamlit as st
|
| 7 |
+
from PIL import ImageOps
|
| 8 |
|
| 9 |
#####
|
| 10 |
###
|
|
|
|
| 42 |
_, row2_col2, row2_col3, row2_col4, row2_col5, _ = st.columns([8,3,3,3,3,8])
|
| 43 |
_, row3_col2, row3_col3, row3_col4, row3_col5, _ = st.columns([8,3,3,3,3,8])
|
| 44 |
|
|
|
|
|
|
|
|
|
|
| 45 |
image_path = "/home/user/app/test/"
|
| 46 |
with row2_col2:
|
| 47 |
+
st.image(ImageOps.exif_transpose(image_path + "IMG_5356.JPG"), use_column_width=True)
|
| 48 |
with row3_col2:
|
| 49 |
st.image(image_path + "IMG_5357.JPG", use_column_width=True)
|
| 50 |
with row2_col3:
|