Spaces:
Build error
Build error
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def display_vid(video):
|
4 |
-
|
|
|
|
|
5 |
demo = gr.Blocks()
|
6 |
|
7 |
with demo:
|
@@ -11,9 +13,9 @@ with demo:
|
|
11 |
"<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.</div>"
|
12 |
)
|
13 |
with gr.Row():
|
14 |
-
input_vid = gr.
|
15 |
#poem_txt = gr.Textbox(lines=7)
|
16 |
-
output_vid = gr.
|
17 |
|
18 |
b1 = gr.Button("Publish Video")
|
19 |
#b2 = gr.Button("Generate Image")
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def display_vid(video):
|
4 |
+
html = <iframe width="560" height="315" src=video frameborder="0" allowfullscreen></iframe>
|
5 |
+
return html
|
6 |
+
|
7 |
demo = gr.Blocks()
|
8 |
|
9 |
with demo:
|
|
|
13 |
"<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.</div>"
|
14 |
)
|
15 |
with gr.Row():
|
16 |
+
input_vid = gr.Textbox() #gr.HTML(placeholder="Enter a video link here..")
|
17 |
#poem_txt = gr.Textbox(lines=7)
|
18 |
+
output_vid = gr.HTML()
|
19 |
|
20 |
b1 = gr.Button("Publish Video")
|
21 |
#b2 = gr.Button("Generate Image")
|