Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -150,7 +150,7 @@ with gr.Blocks() as app:
|
|
150 |
with gr.Column():
|
151 |
inp = gr.Textbox(label="URL (must be Public)",lines=1)
|
152 |
with gr.Row():
|
153 |
-
|
154 |
btn= gr.Button("Snapshot")
|
155 |
|
156 |
with gr.Column():
|
@@ -167,5 +167,5 @@ with gr.Blocks() as app:
|
|
167 |
outim = gr.Image()
|
168 |
prev=gr.HTML()
|
169 |
#load_btn.click(load_frame,inp,prev)
|
170 |
-
btn.click(run_script,[inp,height,width,check_b,check_h,
|
171 |
app.queue(default_concurrency_limit=5).launch()
|
|
|
150 |
with gr.Column():
|
151 |
inp = gr.Textbox(label="URL (must be Public)",lines=1)
|
152 |
with gr.Row():
|
153 |
+
wait_t=gr.Slider(30, 1200, value=120, label="Wait time", info="Wait for page to load. More data = Longer wait"),
|
154 |
btn= gr.Button("Snapshot")
|
155 |
|
156 |
with gr.Column():
|
|
|
167 |
outim = gr.Image()
|
168 |
prev=gr.HTML()
|
169 |
#load_btn.click(load_frame,inp,prev)
|
170 |
+
btn.click(run_script,[inp,height,width,check_b,check_h,wait_t],[outim,message,outgal,out])
|
171 |
app.queue(default_concurrency_limit=5).launch()
|