Spaces:
Build error
Build error
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 |
-
|
83 |
-
print(html)
|
84 |
|
85 |
#get transcript
|
86 |
-
transcript, video_id = get_transcript(
|
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
|