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