Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|