Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,7 @@ if option == "Image":
|
|
29 |
elif option == "Video":
|
30 |
# Dynamically load video files from 'videos/' folder
|
31 |
video_folder = 'videos/'
|
32 |
-
video_files = [f for f in os.listdir(video_folder) if f.endswith(('.mp4', '.avi'))]
|
33 |
-
|
34 |
if video_files:
|
35 |
video_file = st.selectbox("Select a video", video_files)
|
36 |
if st.button("Process Video"):
|
|
|
29 |
elif option == "Video":
|
30 |
# Dynamically load video files from 'videos/' folder
|
31 |
video_folder = 'videos/'
|
32 |
+
video_files = [f for f in os.listdir(video_folder) if f.endswith(('.mp4', '.avi','.mov'))]
|
|
|
33 |
if video_files:
|
34 |
video_file = st.selectbox("Select a video", video_files)
|
35 |
if st.button("Process Video"):
|