David Li commited on
Commit
aba4a75
·
1 Parent(s): b829c1f

fix: work fix again

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -20,9 +20,10 @@ def get_video_id(url):
20
  else:
21
  return "Please enter a YouTube URL"
22
  sys.stdin = old_stdin
23
- summary_file = glob.glob(f"{video_id}/*_summary.txt")[0]
 
24
  # file .srt file
25
- subtitle_file = glob.glob(f"{video_id}/*.srt")[0] or glob.glob(f"{video_id}/*.vtt")[0]
26
  return summary_file, subtitle_file
27
 
28
  input_text = gr.inputs.Textbox(label="Enter a YouTube URL")
 
20
  else:
21
  return "Please enter a YouTube URL"
22
  sys.stdin = old_stdin
23
+ print(f"Video ID: {video_id}")
24
+ summary_file = glob.glob(f"-{video_id}/*_summary.txt")[0]
25
  # file .srt file
26
+ subtitle_file = glob.glob(f"-{video_id}/*.srt")[0] or glob.glob(f"{video_id}/*.vtt")[0]
27
  return summary_file, subtitle_file
28
 
29
  input_text = gr.inputs.Textbox(label="Enter a YouTube URL")