GoodML commited on
Commit
5c1ed9e
·
verified ·
1 Parent(s): 9b4a0ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ from dotenv import load_dotenv
6
  from deepgram import DeepgramClient, PrerecordedOptions
7
  import tempfile
8
  import json
9
- from youtube_transcript_api import YouTubeTranscriptApi, YouTubeTranscriptApiException
10
 
11
  import warnings
12
  warnings.filterwarnings("ignore", message="FP16 is not supported on CPU; using FP32 instead")
@@ -106,7 +106,7 @@ def process_youtube():
106
  transcript = " ".join([segment['text'] for segment in transcript_data])
107
 
108
 
109
- except YouTubeTranscriptApiException as e:
110
  print(f"Error fetching transcript for video ID {video_id}: {e}")
111
 
112
  if not transcript:
 
6
  from deepgram import DeepgramClient, PrerecordedOptions
7
  import tempfile
8
  import json
9
+ from youtube_transcript_api import YouTubeTranscriptApi
10
 
11
  import warnings
12
  warnings.filterwarnings("ignore", message="FP16 is not supported on CPU; using FP32 instead")
 
106
  transcript = " ".join([segment['text'] for segment in transcript_data])
107
 
108
 
109
+ except Exception as e:
110
  print(f"Error fetching transcript for video ID {video_id}: {e}")
111
 
112
  if not transcript: