Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1358,7 +1358,7 @@ def main():
|
|
1358 |
# Image Gallery (For your viewing pleasure ๐ธ)
|
1359 |
st.subheader("Image Gallery ๐ผ")
|
1360 |
image_files = glob.glob("*.png") + glob.glob("*.jpg") + glob.glob("*.jpeg")
|
1361 |
-
image_cols = st.slider("Gallery Columns ๐ผ", min_value=1, max_value=
|
1362 |
cols = st.columns(image_cols)
|
1363 |
for idx, image_file in enumerate(image_files):
|
1364 |
with cols[idx % image_cols]:
|
@@ -1376,7 +1376,7 @@ def main():
|
|
1376 |
# Video Gallery (Letโs roll the tapes ๐ฌ)
|
1377 |
st.subheader("Video Gallery ๐ฅ")
|
1378 |
video_files = glob.glob("*.mp4")
|
1379 |
-
video_cols = st.slider("Gallery Columns ๐ฌ", min_value=1, max_value=10, value=
|
1380 |
cols = st.columns(video_cols)
|
1381 |
for idx, video_file in enumerate(video_files):
|
1382 |
with cols[idx % video_cols]:
|
@@ -1392,7 +1392,7 @@ def main():
|
|
1392 |
# Audio Gallery (Tunes for the mood ๐ถ)
|
1393 |
st.subheader("Audio Gallery ๐ง")
|
1394 |
audio_files = glob.glob("*.mp3") + glob.glob("*.wav")
|
1395 |
-
audio_cols = st.slider("Gallery Columns ๐ถ", min_value=1, max_value=10, value=
|
1396 |
cols = st.columns(audio_cols)
|
1397 |
for idx, audio_file in enumerate(audio_files):
|
1398 |
with cols[idx % audio_cols]:
|
|
|
1358 |
# Image Gallery (For your viewing pleasure ๐ธ)
|
1359 |
st.subheader("Image Gallery ๐ผ")
|
1360 |
image_files = glob.glob("*.png") + glob.glob("*.jpg") + glob.glob("*.jpeg")
|
1361 |
+
image_cols = st.slider("Gallery Columns ๐ผ", min_value=1, max_value=20, value=10)
|
1362 |
cols = st.columns(image_cols)
|
1363 |
for idx, image_file in enumerate(image_files):
|
1364 |
with cols[idx % image_cols]:
|
|
|
1376 |
# Video Gallery (Letโs roll the tapes ๐ฌ)
|
1377 |
st.subheader("Video Gallery ๐ฅ")
|
1378 |
video_files = glob.glob("*.mp4")
|
1379 |
+
video_cols = st.slider("Gallery Columns ๐ฌ", min_value=1, max_value=10, value=5)
|
1380 |
cols = st.columns(video_cols)
|
1381 |
for idx, video_file in enumerate(video_files):
|
1382 |
with cols[idx % video_cols]:
|
|
|
1392 |
# Audio Gallery (Tunes for the mood ๐ถ)
|
1393 |
st.subheader("Audio Gallery ๐ง")
|
1394 |
audio_files = glob.glob("*.mp3") + glob.glob("*.wav")
|
1395 |
+
audio_cols = st.slider("Gallery Columns ๐ถ", min_value=1, max_value=10, value=5)
|
1396 |
cols = st.columns(audio_cols)
|
1397 |
for idx, audio_file in enumerate(audio_files):
|
1398 |
with cols[idx % audio_cols]:
|