springwater commited on
Commit
ec4b4c0
·
verified ·
1 Parent(s): c25c758

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def get_transcript(urls):
17
  for url in urls:
18
  data = Transcript.get(url)
19
  text = ""
20
- for segment in data['transcript']:
21
  text += segment['text']
22
  contents += text
23
  return contents
 
17
  for url in urls:
18
  data = Transcript.get(url)
19
  text = ""
20
+ for segment in data['segments']:
21
  text += segment['text']
22
  contents += text
23
  return contents