Update app.py
Browse files
app.py
CHANGED
|
@@ -85,16 +85,16 @@ def get_f(r_name,spaces,token):
|
|
| 85 |
spaces=spaces.split(",")
|
| 86 |
print (spaces)
|
| 87 |
|
| 88 |
-
for
|
| 89 |
-
print(f"a-{
|
| 90 |
-
print(
|
| 91 |
#print(space)
|
| 92 |
-
f_ist = (api.list_repo_files(repo_id=f'{r_name}/{
|
| 93 |
-
sp =
|
| 94 |
-
for
|
| 95 |
print("b")
|
| 96 |
-
r = requests.get(f'https://huggingface.co/spaces/{r_name}/{sp}/raw/main/{
|
| 97 |
-
print(
|
| 98 |
#with zipfile.ZipFile('new.zip', 'w') as new_zip:
|
| 99 |
# new_zip.write('spam.txt', compress_type=zipfile.ZIP_DEFLATED)
|
| 100 |
|
|
|
|
| 85 |
spaces=spaces.split(",")
|
| 86 |
print (spaces)
|
| 87 |
|
| 88 |
+
for b in spaces:
|
| 89 |
+
print(f"a-{b}")
|
| 90 |
+
print(n)
|
| 91 |
#print(space)
|
| 92 |
+
f_ist = (api.list_repo_files(repo_id=f'{r_name}/{b}', repo_type="space"))
|
| 93 |
+
sp = b
|
| 94 |
+
for f in f_ist:
|
| 95 |
print("b")
|
| 96 |
+
r = requests.get(f'https://huggingface.co/spaces/{r_name}/{sp}/raw/main/{f}')
|
| 97 |
+
print(f)
|
| 98 |
#with zipfile.ZipFile('new.zip', 'w') as new_zip:
|
| 99 |
# new_zip.write('spam.txt', compress_type=zipfile.ZIP_DEFLATED)
|
| 100 |
|