Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -1363,7 +1363,8 @@ def display_images_and_wikipedia_summaries(num_columns=4):
|
|
1363 |
|
1364 |
def display_videos_and_links(num_columns):
|
1365 |
#video_files = [f for f in os.listdir('.') if f.endswith('.mp4')]
|
1366 |
-
video_files = [f for f in os.listdir('.') if f.endswith('.webm')]
|
|
|
1367 |
|
1368 |
if not video_files:
|
1369 |
st.write("No MP4 videos found in the current directory.")
|
|
|
1363 |
|
1364 |
def display_videos_and_links(num_columns):
|
1365 |
#video_files = [f for f in os.listdir('.') if f.endswith('.mp4')]
|
1366 |
+
#video_files = [f for f in os.listdir('.') if f.endswith('.webm')]
|
1367 |
+
video_files = [f for f in os.listdir('.') if f.endswith(('.mp4', '.webm'))]
|
1368 |
|
1369 |
if not video_files:
|
1370 |
st.write("No MP4 videos found in the current directory.")
|