Update app.py
Browse files
app.py
CHANGED
|
@@ -79,9 +79,10 @@ def get_f(r_name,spaces,token):
|
|
| 79 |
spaces_b=[]
|
| 80 |
files_b=[]
|
| 81 |
for b, space in enumerate(spaces):
|
| 82 |
-
print("a")
|
| 83 |
-
f_ist = (api.list_repo_files(repo_id=f'{r_name}/{spaces[b]}', repo_type="space"))
|
| 84 |
print(spaces[b])
|
|
|
|
|
|
|
| 85 |
for i in f_ist:
|
| 86 |
print("b")
|
| 87 |
r = requests.get(f'https://huggingface.co/spaces/{r_name}/{space[b]}/raw/main/{f_ist[i]}')
|
|
|
|
| 79 |
spaces_b=[]
|
| 80 |
files_b=[]
|
| 81 |
for b, space in enumerate(spaces):
|
| 82 |
+
print(f"a-{b}")
|
|
|
|
| 83 |
print(spaces[b])
|
| 84 |
+
print(space)
|
| 85 |
+
f_ist = (api.list_repo_files(repo_id=f'{r_name}/{space}', repo_type="space"))
|
| 86 |
for i in f_ist:
|
| 87 |
print("b")
|
| 88 |
r = requests.get(f'https://huggingface.co/spaces/{r_name}/{space[b]}/raw/main/{f_ist[i]}')
|