Daniel Amendoeira commited on
Commit
38a896e
·
verified ·
1 Parent(s): 2105776

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +2 -2
tools.py CHANGED
@@ -81,7 +81,7 @@ def transcribe_youtube(youtube_url: str) -> str:
81
  transcript = youtube_api.fetch(video_id)
82
 
83
  # keep only text
84
- txt = '\n'.join([s.text for s in transcript.snippets])
85
- return txt
86
  except Exception as e:
87
  return f"transcribe_youtube failed: {e}"
 
81
  transcript = youtube_api.fetch(video_id)
82
 
83
  # keep only text
84
+ text = '\n'.join([s.text for s in transcript.snippets])
85
+ return text
86
  except Exception as e:
87
  return f"transcribe_youtube failed: {e}"