Update app.py
Browse files
app.py
CHANGED
@@ -182,7 +182,7 @@ def main():
|
|
182 |
# Image Gallery (For your viewing pleasure 📸)
|
183 |
st.subheader("Image Gallery 🖼")
|
184 |
image_files = glob.glob("*.png") + glob.glob("*.jpg") + glob.glob("*.jpeg")
|
185 |
-
image_cols = st.slider("Gallery Columns 🖼", min_value=1, max_value=
|
186 |
cols = st.columns(image_cols)
|
187 |
for idx, image_file in enumerate(image_files):
|
188 |
with cols[idx % image_cols]:
|
@@ -203,7 +203,7 @@ def main():
|
|
203 |
# Audio Gallery (Tunes for the mood 🎶)
|
204 |
st.subheader("Audio Gallery 🎧")
|
205 |
audio_files = glob.glob("*.mp3") + glob.glob("*.wav")
|
206 |
-
audio_cols = st.slider("Gallery Columns 🎶", min_value=1, max_value=
|
207 |
cols = st.columns(audio_cols)
|
208 |
for idx, audio_file in enumerate(audio_files):
|
209 |
with cols[idx % audio_cols]:
|
|
|
182 |
# Image Gallery (For your viewing pleasure 📸)
|
183 |
st.subheader("Image Gallery 🖼")
|
184 |
image_files = glob.glob("*.png") + glob.glob("*.jpg") + glob.glob("*.jpeg")
|
185 |
+
image_cols = st.slider("Gallery Columns 🖼", min_value=1, max_value=15, value=5)
|
186 |
cols = st.columns(image_cols)
|
187 |
for idx, image_file in enumerate(image_files):
|
188 |
with cols[idx % image_cols]:
|
|
|
203 |
# Audio Gallery (Tunes for the mood 🎶)
|
204 |
st.subheader("Audio Gallery 🎧")
|
205 |
audio_files = glob.glob("*.mp3") + glob.glob("*.wav")
|
206 |
+
audio_cols = st.slider("Gallery Columns 🎶", min_value=1, max_value=15, value=5)
|
207 |
cols = st.columns(audio_cols)
|
208 |
for idx, audio_file in enumerate(audio_files):
|
209 |
with cols[idx % audio_cols]:
|