ysharma HF staff commited on
Commit
3af57d4
·
1 Parent(s): d93a889
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,11 +79,11 @@ def display_vid(url, question):
79
  #html = HTML("<iframe width='560' height='315' src='https://www.youtube.com/watch?v=smUHQndcmOY&t=425s' frameborder='0' allowfullscreen></iframe>")
80
  #html = "<iframe width='560' height='315' src='https://www.youtube.com/embed/smUHQndcmOY' frameborder='0' allowfullscreen></iframe>"
81
  #get embedding and youtube link
82
- html = "<iframe width='560' height='315' src=" + url + " frameborder='0' allowfullscreen></iframe>"
83
- print(html)
84
 
85
  #get transcript
86
- transcript, video_id = get_transcript(html)
87
 
88
  #get answer timestamp
89
  #input - question and transcript, output - answer timestamp
 
79
  #html = HTML("<iframe width='560' height='315' src='https://www.youtube.com/watch?v=smUHQndcmOY&t=425s' frameborder='0' allowfullscreen></iframe>")
80
  #html = "<iframe width='560' height='315' src='https://www.youtube.com/embed/smUHQndcmOY' frameborder='0' allowfullscreen></iframe>"
81
  #get embedding and youtube link
82
+ html_in = "<iframe width='560' height='315' src=" + url + " frameborder='0' allowfullscreen></iframe>"
83
+ #print(html)
84
 
85
  #get transcript
86
+ transcript, video_id = get_transcript(url)
87
 
88
  #get answer timestamp
89
  #input - question and transcript, output - answer timestamp