Spaces:
Running
Running
Update dl.py
Browse files
dl.py
CHANGED
@@ -290,6 +290,15 @@ def checkp(p):
|
|
290 |
return gr.update(visible=False), gr.update(visible=True)
|
291 |
elif p != o:
|
292 |
return None, None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
with gr.Blocks(css=css) as build:
|
294 |
with gr.Row(visible=False) as no:
|
295 |
pass_box=gr.Textbox()
|
@@ -351,18 +360,14 @@ with gr.Blocks(css=css) as build:
|
|
351 |
with gr.Column():
|
352 |
ru_sure_box=gr.Textbox(label="type: 'CONFIRM' to confirm", value="")
|
353 |
ru_sure_btn=gr.Button("Confirm Delete")
|
354 |
-
|
|
|
|
|
355 |
gr.Column()
|
356 |
sure_check=gr.Textbox(visible=False,value="")
|
357 |
|
358 |
-
def ru_sure_fn():
|
359 |
-
return gr.update(visible=True)
|
360 |
|
361 |
-
|
362 |
-
html=""
|
363 |
-
for ea in inp:
|
364 |
-
html=f'{html}<br>{ea}'
|
365 |
-
return html
|
366 |
dl_checked_btn.click(dl_checked_fn,[r_name,space_check,token],files)
|
367 |
delete_checked_btn.click(ru_sure_fn,None,sure_row)
|
368 |
ru_sure_btn.click(delete_checked,[ru_sure_box,r_name,space_check,token],[del_message_box,sure_row])
|
|
|
290 |
return gr.update(visible=False), gr.update(visible=True)
|
291 |
elif p != o:
|
292 |
return None, None
|
293 |
+
def update_checked_message(inp):
|
294 |
+
html=""
|
295 |
+
for ea in inp:
|
296 |
+
html=f'{html}<br>{ea}'
|
297 |
+
return html
|
298 |
+
|
299 |
+
def ru_sure_fn():
|
300 |
+
return gr.update(visible=True)
|
301 |
+
|
302 |
with gr.Blocks(css=css) as build:
|
303 |
with gr.Row(visible=False) as no:
|
304 |
pass_box=gr.Textbox()
|
|
|
360 |
with gr.Column():
|
361 |
ru_sure_box=gr.Textbox(label="type: 'CONFIRM' to confirm", value="")
|
362 |
ru_sure_btn=gr.Button("Confirm Delete")
|
363 |
+
|
364 |
+
with gr.Row():
|
365 |
+
del_message_box=gr.HTML()
|
366 |
gr.Column()
|
367 |
sure_check=gr.Textbox(visible=False,value="")
|
368 |
|
|
|
|
|
369 |
|
370 |
+
|
|
|
|
|
|
|
|
|
371 |
dl_checked_btn.click(dl_checked_fn,[r_name,space_check,token],files)
|
372 |
delete_checked_btn.click(ru_sure_fn,None,sure_row)
|
373 |
ru_sure_btn.click(delete_checked,[ru_sure_box,r_name,space_check,token],[del_message_box,sure_row])
|