Spaces:
Build error
Build error
app.py
CHANGED
@@ -4,7 +4,7 @@ from IPython.display import YouTubeVideo
|
|
4 |
|
5 |
def display_vid(video):
|
6 |
#https://www.youtube.com/watch?v=smUHQndcmOY&t=425s
|
7 |
-
html = HTML("<iframe width='560' height='315' src=
|
8 |
vid = YouTubeVideo('smUHQndcmOY&t=425s')
|
9 |
return html
|
10 |
|
@@ -19,7 +19,7 @@ with demo:
|
|
19 |
with gr.Row():
|
20 |
input_vid = gr.Textbox() #gr.HTML(placeholder="Enter a video link here..")
|
21 |
#poem_txt = gr.Textbox(lines=7)
|
22 |
-
output_vid = gr.Video()
|
23 |
|
24 |
b1 = gr.Button("Publish Video")
|
25 |
#b2 = gr.Button("Generate Image")
|
|
|
4 |
|
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 |
vid = YouTubeVideo('smUHQndcmOY&t=425s')
|
9 |
return html
|
10 |
|
|
|
19 |
with gr.Row():
|
20 |
input_vid = gr.Textbox() #gr.HTML(placeholder="Enter a video link here..")
|
21 |
#poem_txt = gr.Textbox(lines=7)
|
22 |
+
output_vid = gr.Video(value=html)
|
23 |
|
24 |
b1 = gr.Button("Publish Video")
|
25 |
#b2 = gr.Button("Generate Image")
|