Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,7 @@ def process_youtube():
|
|
98 |
try:
|
99 |
# Extract the YouTube video ID from the URL
|
100 |
video_id = youtube_url.split("v=")[-1].split("&")[0]
|
101 |
-
|
102 |
try:
|
103 |
# Fetch the transcript for the video using YouTubeTranscriptApi
|
104 |
transcript_data = YouTubeTranscriptApi.get_transcript(video_id)
|
|
|
98 |
try:
|
99 |
# Extract the YouTube video ID from the URL
|
100 |
video_id = youtube_url.split("v=")[-1].split("&")[0]
|
101 |
+
transcript = ""
|
102 |
try:
|
103 |
# Fetch the transcript for the video using YouTubeTranscriptApi
|
104 |
transcript_data = YouTubeTranscriptApi.get_transcript(video_id)
|