Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -126,13 +126,15 @@ with gr.Blocks() as app:
|
|
126 |
inp_im=gr.Image(label="Search Image",type='filepath')
|
127 |
go_btn_im=gr.Button()
|
128 |
with gr.Box(visible=False) as vid_box:
|
|
|
|
|
129 |
inp_vid=gr.Video(label="Search Video",type='filepath')
|
130 |
go_btn_vid=gr.Button()
|
131 |
gr.Column()
|
132 |
#paste_clip = gr.Button("Paste from Clipboard")
|
133 |
with gr.Row():
|
134 |
-
|
135 |
html_out = gr.HTML("""""")
|
|
|
136 |
source_tog.change(shuf,[source_tog],[url_box,im_box,vid_box])
|
137 |
inp_im.change(process_im,inp_im,[inp_url])
|
138 |
go_btn_vid.click(process_vid,inp_vid,[html_out])
|
|
|
126 |
inp_im=gr.Image(label="Search Image",type='filepath')
|
127 |
go_btn_im=gr.Button()
|
128 |
with gr.Box(visible=False) as vid_box:
|
129 |
+
vid_url=gr.Textbox(label="Video URL")
|
130 |
+
vid_url_btn=gr.Button("Load URL")
|
131 |
inp_vid=gr.Video(label="Search Video",type='filepath')
|
132 |
go_btn_vid=gr.Button()
|
133 |
gr.Column()
|
134 |
#paste_clip = gr.Button("Paste from Clipboard")
|
135 |
with gr.Row():
|
|
|
136 |
html_out = gr.HTML("""""")
|
137 |
+
vid_url_btn.click(dl,vid_url,inp_vid)
|
138 |
source_tog.change(shuf,[source_tog],[url_box,im_box,vid_box])
|
139 |
inp_im.change(process_im,inp_im,[inp_url])
|
140 |
go_btn_vid.click(process_vid,inp_vid,[html_out])
|