Spaces:
Running
Running
Update dl.py
Browse files
dl.py
CHANGED
@@ -17,14 +17,11 @@ css="""
|
|
17 |
.wrap.svelte-vm32wk.svelte-vm32wk.svelte-vm32wk {
|
18 |
display:block;
|
19 |
}
|
20 |
-
|
21 |
-
my_checkbox{
|
22 |
display:block;
|
23 |
}
|
24 |
"""
|
25 |
-
|
26 |
-
#display:block;
|
27 |
-
#}
|
28 |
def show_s(name,token):
|
29 |
spaces=[]
|
30 |
spaces.append("")
|
@@ -256,8 +253,13 @@ def dl_checked_fn(author,checklist,token):
|
|
256 |
pass
|
257 |
file_list.append(f'{author}.zip')
|
258 |
yield file_list
|
259 |
-
|
260 |
-
|
|
|
|
|
|
|
|
|
|
|
261 |
def checkp(p):
|
262 |
if p == o:
|
263 |
return gr.update(visible=False), gr.update(visible=True)
|
|
|
17 |
.wrap.svelte-vm32wk.svelte-vm32wk.svelte-vm32wk {
|
18 |
display:block;
|
19 |
}
|
20 |
+
.wrap.svelte-1k4wjf2.svelte-1k4wjf2.svelte-1k4wjf2{
|
|
|
21 |
display:block;
|
22 |
}
|
23 |
"""
|
24 |
+
|
|
|
|
|
25 |
def show_s(name,token):
|
26 |
spaces=[]
|
27 |
spaces.append("")
|
|
|
253 |
pass
|
254 |
file_list.append(f'{author}.zip')
|
255 |
yield file_list
|
256 |
+
def get_space_runtime(author,checklist,token):
|
257 |
+
api=HfApi(token=token)
|
258 |
+
space_info=[]
|
259 |
+
for space in checklist:
|
260 |
+
outp=api.get_space_runtime(f'{author}/{space}')
|
261 |
+
space_info.append(outp['stage'])
|
262 |
+
return space_info
|
263 |
def checkp(p):
|
264 |
if p == o:
|
265 |
return gr.update(visible=False), gr.update(visible=True)
|