Spaces:
Sleeping
Sleeping
DIVYANSHI SINGH commited on
Commit ·
353eb66
1
Parent(s): 5ba38b8
Fix Streamlit layout warnings by updating deprecated parameters
Browse files
app.py
CHANGED
|
@@ -180,7 +180,7 @@ def main():
|
|
| 180 |
with cols[idx]:
|
| 181 |
if file.type.startswith('image'):
|
| 182 |
img = Image.open(file)
|
| 183 |
-
st.image(img,
|
| 184 |
else:
|
| 185 |
st.markdown(f"📄 **{file.name}**")
|
| 186 |
|
|
@@ -230,7 +230,7 @@ def main():
|
|
| 230 |
if file.type.startswith('image'):
|
| 231 |
try:
|
| 232 |
img = Image.open(temp_path)
|
| 233 |
-
st.image(img,
|
| 234 |
except:
|
| 235 |
st.info("Preview unavailable")
|
| 236 |
|
|
|
|
| 180 |
with cols[idx]:
|
| 181 |
if file.type.startswith('image'):
|
| 182 |
img = Image.open(file)
|
| 183 |
+
st.image(img, use_container_width=True, caption=file.name)
|
| 184 |
else:
|
| 185 |
st.markdown(f"📄 **{file.name}**")
|
| 186 |
|
|
|
|
| 230 |
if file.type.startswith('image'):
|
| 231 |
try:
|
| 232 |
img = Image.open(temp_path)
|
| 233 |
+
st.image(img, use_container_width=True)
|
| 234 |
except:
|
| 235 |
st.info("Preview unavailable")
|
| 236 |
|