awacke1 commited on
Commit
a686b0c
โ€ข
1 Parent(s): 119934c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=10, value=2)
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=2)
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=2)
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]: