Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -104,12 +104,7 @@ def get_hf_files(repo,name,path=""):
|
|
104 |
file = open(f'{name}/{f_name}','wb')
|
105 |
file.write(r.content)
|
106 |
file.close()
|
107 |
-
|
108 |
-
files.append(item)
|
109 |
-
elif item['type'] == 'dir':
|
110 |
-
files.extend(get_all_files(owner, repo, item['path'], is_hf))
|
111 |
-
|
112 |
-
|
113 |
file_list.append({"path":f'{d_app}'})
|
114 |
print(file_list)
|
115 |
return file_list
|
|
|
104 |
file = open(f'{name}/{f_name}','wb')
|
105 |
file.write(r.content)
|
106 |
file.close()
|
107 |
+
|
|
|
|
|
|
|
|
|
|
|
108 |
file_list.append({"path":f'{d_app}'})
|
109 |
print(file_list)
|
110 |
return file_list
|