Spaces:
Build error
Build error
app.py
CHANGED
@@ -5,10 +5,10 @@ from IPython.display import YouTubeVideo
|
|
5 |
def display_vid(video):
|
6 |
#https://www.youtube.com/watch?v=smUHQndcmOY&t=425s
|
7 |
#html = HTML("<iframe width='560' height='315' src='https://www.youtube.com/watch?v=smUHQndcmOY&t=425s' frameborder='0' allowfullscreen></iframe>")
|
8 |
-
html = <iframe width='560' height='315' src='https://www.youtube.com/embed/smUHQndcmOY
|
9 |
vid = YouTubeVideo('smUHQndcmOY&t=425s')
|
10 |
return html
|
11 |
-
|
12 |
def fun(url):
|
13 |
return gr.Video(value=url)
|
14 |
|
@@ -20,12 +20,12 @@ with demo:
|
|
20 |
gr.Markdown("<h1><center>Ask a Question to a YouTube Video and get the timestamp where the probable answer is</center></h1>")
|
21 |
gr.Markdown(
|
22 |
"<div>How many times have you seen a long video/podcast on Youtube and wondered only if there would have been 'explanatory' timestamps it would have been so much better..</div>"
|
23 |
-
"<div>Well, using this Space/App you can provide a YouTube video link and then provide some questions that you would like, and the App will generate timestamps/play video at those timestamps for you in the space provided. Idea is that your question could be like 'Is this xxxx thing covered in the video?', or maybe 'does the host talks about the architecture of the model', or maybe 'Does host talk about alien doorway on Mars?' and so on.</div><br> <br> <div> This App is Work in Progress, please bear with me
|
24 |
)
|
25 |
with gr.Row():
|
26 |
input_url = gr.Textbox() #gr.HTML(placeholder="Enter a video link here..")
|
27 |
#input_vid = gr.Video()
|
28 |
-
output_vid = gr.
|
29 |
|
30 |
b1 = gr.Button("Publish Video")
|
31 |
#b2 = gr.Button("Generate Image")
|
|
|
5 |
def display_vid(video):
|
6 |
#https://www.youtube.com/watch?v=smUHQndcmOY&t=425s
|
7 |
#html = HTML("<iframe width='560' height='315' src='https://www.youtube.com/watch?v=smUHQndcmOY&t=425s' frameborder='0' allowfullscreen></iframe>")
|
8 |
+
html = "<iframe width='560' height='315' src='https://www.youtube.com/embed/smUHQndcmOY' frameborder='0' allowfullscreen></iframe>"
|
9 |
vid = YouTubeVideo('smUHQndcmOY&t=425s')
|
10 |
return html
|
11 |
+
#https://youtu.be/smUHQndcmOY
|
12 |
def fun(url):
|
13 |
return gr.Video(value=url)
|
14 |
|
|
|
20 |
gr.Markdown("<h1><center>Ask a Question to a YouTube Video and get the timestamp where the probable answer is</center></h1>")
|
21 |
gr.Markdown(
|
22 |
"<div>How many times have you seen a long video/podcast on Youtube and wondered only if there would have been 'explanatory' timestamps it would have been so much better..</div>"
|
23 |
+
"<div>Well, using this Space/App you can provide a YouTube video link and then provide some questions that you would like, and the App will generate timestamps/play video at those timestamps for you in the space provided. Idea is that your question could be like 'Is this xxxx thing covered in the video?', or maybe 'does the host talks about the architecture of the model', or maybe 'Does host talk about alien doorway on Mars?' and so on.</div><br> <br> <div> This App is Work in Progress, please bear with me.<br><br></div>"
|
24 |
)
|
25 |
with gr.Row():
|
26 |
input_url = gr.Textbox() #gr.HTML(placeholder="Enter a video link here..")
|
27 |
#input_vid = gr.Video()
|
28 |
+
output_vid = gr.HTML()
|
29 |
|
30 |
b1 = gr.Button("Publish Video")
|
31 |
#b2 = gr.Button("Generate Image")
|