ysharma HF staff commited on
Commit
9c5bf65
1 Parent(s): 547965d
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -8,6 +8,11 @@ def display_vid(video):
8
  vid = YouTubeVideo('smUHQndcmOY&t=425s')
9
  return html
10
 
 
 
 
 
 
11
  demo = gr.Blocks()
12
 
13
  with demo:
@@ -17,14 +22,14 @@ with demo:
17
  "<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>"
18
  )
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")
26
 
27
- b1.click(display_vid, input_vid, output_vid)
28
  #b2.click(poem_to_image, poem_txt, output_image)
29
  #examples=examples
30
 
 
8
  vid = YouTubeVideo('smUHQndcmOY&t=425s')
9
  return html
10
 
11
+ def fun(url):
12
+ return url
13
+
14
+
15
+
16
  demo = gr.Blocks()
17
 
18
  with demo:
 
22
  "<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>"
23
  )
24
  with gr.Row():
25
+ input_url = gr.Textbox() #gr.HTML(placeholder="Enter a video link here..")
26
+ #input_vid = gr.Video()
27
+ output_vid = gr.Video(value="text")
28
 
29
  b1 = gr.Button("Publish Video")
30
  #b2 = gr.Button("Generate Image")
31
 
32
+ b1.click(fun, input_url, output_vid)
33
  #b2.click(poem_to_image, poem_txt, output_image)
34
  #examples=examples
35