hermanda commited on
Commit
3f7abe7
·
verified ·
1 Parent(s): 78176e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def download_subtitles(url):
23
  # Verify the directory exists
24
  if not os.path.isdir(directory):
25
  raise FileNotFoundError(f"Directory {directory} does not exist")
26
-
27
  # Find the .srt file in the directory
28
  srt_files = [f for f in os.listdir(directory) if f.endswith('.srt')]
29
  if not srt_files:
 
23
  # Verify the directory exists
24
  if not os.path.isdir(directory):
25
  raise FileNotFoundError(f"Directory {directory} does not exist")
26
+ print(os.listdir(directory))
27
  # Find the .srt file in the directory
28
  srt_files = [f for f in os.listdir(directory) if f.endswith('.srt')]
29
  if not srt_files: