Spaces:
Paused
Paused
Update dl.py
Browse files
dl.py
CHANGED
|
@@ -50,14 +50,14 @@ def show_f(repo,name,token):
|
|
| 50 |
file.writelines(r.text)
|
| 51 |
file.close()
|
| 52 |
file_list.append(Path(f'{name}/{f_name}'))
|
| 53 |
-
file_out.append(
|
| 54 |
|
| 55 |
with ZipFile(f"{name}.zip", "w") as zipObj:
|
| 56 |
for idx, file in enumerate(f_ist):
|
| 57 |
zipObj.write(f'{name}/{file}')
|
| 58 |
file_list.append(f'{name}.zip')
|
| 59 |
|
| 60 |
-
return(gr.Dropdown.update(label="Files", choices=[f for f in
|
| 61 |
|
| 62 |
def show_all(author,token):
|
| 63 |
spaces=[]
|
|
|
|
| 50 |
file.writelines(r.text)
|
| 51 |
file.close()
|
| 52 |
file_list.append(Path(f'{name}/{f_name}'))
|
| 53 |
+
file_out.append(d_app)
|
| 54 |
|
| 55 |
with ZipFile(f"{name}.zip", "w") as zipObj:
|
| 56 |
for idx, file in enumerate(f_ist):
|
| 57 |
zipObj.write(f'{name}/{file}')
|
| 58 |
file_list.append(f'{name}.zip')
|
| 59 |
|
| 60 |
+
return(gr.Dropdown.update(label="Files", choices=[f for f in f_ist]), file_list)
|
| 61 |
|
| 62 |
def show_all(author,token):
|
| 63 |
spaces=[]
|