Spaces:
Running
Running
Rivalcoder
commited on
Commit
·
898f1d6
1
Parent(s):
adb03d1
[Edit]
Browse files
app.py
CHANGED
@@ -15,9 +15,9 @@ def fetch_transcript(video_id: str):
|
|
15 |
try:
|
16 |
# Fetch transcript
|
17 |
transcript = ytt_api.fetch(video_id)
|
|
|
18 |
# Format the transcript into a readable text
|
19 |
-
|
20 |
-
return transcript_text
|
21 |
except Exception as e:
|
22 |
return f"Error fetching transcript: {str(e)}"
|
23 |
|
|
|
15 |
try:
|
16 |
# Fetch transcript
|
17 |
transcript = ytt_api.fetch(video_id)
|
18 |
+
print(transcript)
|
19 |
# Format the transcript into a readable text
|
20 |
+
return transcript
|
|
|
21 |
except Exception as e:
|
22 |
return f"Error fetching transcript: {str(e)}"
|
23 |
|