Spaces:
Running
Running
Update dl.py
Browse files
dl.py
CHANGED
@@ -31,6 +31,7 @@ def show_s(name,token):
|
|
31 |
spaces.append(space_ea)
|
32 |
#print (space_ea)
|
33 |
return(gr.Dropdown.update(label="Spaces", choices=[s for s in spaces]),
|
|
|
34 |
gr.update(choices=[s for s in spaces],interactive=True))
|
35 |
|
36 |
def show_f(repo,name,token):
|
@@ -312,7 +313,7 @@ with gr.Blocks(css=css) as build:
|
|
312 |
show_all_btn1.click(show_all,[r_name,token],files)
|
313 |
show_all_btn2.click(show_all_z,[r_name,token],files)
|
314 |
|
315 |
-
s_btn.click(show_s,[r_name,token],[s_name,space_radio])
|
316 |
l_btn.click(show_f,[r_name,s_name,token], [f_name, files,file_radio])
|
317 |
f_name.change(show_f_cont,[r_name,s_name,f_name],[r_h])
|
318 |
|
|
|
31 |
spaces.append(space_ea)
|
32 |
#print (space_ea)
|
33 |
return(gr.Dropdown.update(label="Spaces", choices=[s for s in spaces]),
|
34 |
+
gr.update(choices=[s for s in spaces],interactive=True),
|
35 |
gr.update(choices=[s for s in spaces],interactive=True))
|
36 |
|
37 |
def show_f(repo,name,token):
|
|
|
313 |
show_all_btn1.click(show_all,[r_name,token],files)
|
314 |
show_all_btn2.click(show_all_z,[r_name,token],files)
|
315 |
|
316 |
+
s_btn.click(show_s,[r_name,token],[s_name,space_radio,space_check])
|
317 |
l_btn.click(show_f,[r_name,s_name,token], [f_name, files,file_radio])
|
318 |
f_name.change(show_f_cont,[r_name,s_name,f_name],[r_h])
|
319 |
|