Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -128,7 +128,7 @@ def process_youtube():
|
|
| 128 |
transcript_list = YouTubeTranscriptApi.list_transcripts(video_id)
|
| 129 |
for transcript in transcript_list:
|
| 130 |
# translating the transcript will return another transcript object
|
| 131 |
-
req_transcript = transcript.translate('en').fetch()
|
| 132 |
|
| 133 |
transcript = req[0].get('text')
|
| 134 |
|
|
|
|
| 128 |
transcript_list = YouTubeTranscriptApi.list_transcripts(video_id)
|
| 129 |
for transcript in transcript_list:
|
| 130 |
# translating the transcript will return another transcript object
|
| 131 |
+
req_transcript = transcript.translate('en').fetch()
|
| 132 |
|
| 133 |
transcript = req[0].get('text')
|
| 134 |
|