awacke1 commited on
Commit
2b86e8d
β€’
1 Parent(s): afb1e97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -401,6 +401,7 @@ def process_video_broke(video_input, user_prompt):
401
  filename_video = f"{filename_stem} {''.join(boldface_terms)}{extension}"
402
  if SaveNewFile:
403
  newfilename = save_video(video_input, filename_video)
 
404
  filename_md = newfilename.replace('.mp4', '.md')
405
  create_file(filename_md, '', video_response, True)
406
  else:
@@ -1195,7 +1196,9 @@ def display_images_and_wikipedia_summaries(num_columns=4):
1195
  col_index += 1 # Increment to move to the next column in the next iteration
1196
 
1197
  def display_videos_and_links(num_columns):
1198
- video_files = [f for f in os.listdir('.') if f.endswith('.mp4')]
 
 
1199
  if not video_files:
1200
  st.write("No MP4 videos found in the current directory.")
1201
  return
 
401
  filename_video = f"{filename_stem} {''.join(boldface_terms)}{extension}"
402
  if SaveNewFile:
403
  newfilename = save_video(video_input, filename_video)
404
+ #filename_md = newfilename.replace('.mp4', '.md')
405
  filename_md = newfilename.replace('.mp4', '.md')
406
  create_file(filename_md, '', video_response, True)
407
  else:
 
1196
  col_index += 1 # Increment to move to the next column in the next iteration
1197
 
1198
  def display_videos_and_links(num_columns):
1199
+ #video_files = [f for f in os.listdir('.') if f.endswith('.mp4')]
1200
+ video_files = [f for f in os.listdir('.') if f.endswith('.webm')]
1201
+
1202
  if not video_files:
1203
  st.write("No MP4 videos found in the current directory.")
1204
  return