Rivalcoder commited on
Commit
898f1d6
·
1 Parent(s): adb03d1
Files changed (1) hide show
  1. app.py +2 -2
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
- transcript_text = "\n".join([entry['text'] for entry in transcript])
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