xp3857 commited on
Commit
de5cf85
·
1 Parent(s): 8b2c410

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -85,16 +85,16 @@ def get_f(r_name,spaces,token):
85
  spaces=spaces.split(",")
86
  print (spaces)
87
 
88
- for i in spaces:
89
- print(f"a-{i}")
90
- print(spaces[i])
91
  #print(space)
92
- f_ist = (api.list_repo_files(repo_id=f'{r_name}/{spaces[i]}', repo_type="space"))
93
- sp = spaces[i]
94
- for i in f_ist:
95
  print("b")
96
- r = requests.get(f'https://huggingface.co/spaces/{r_name}/{sp}/raw/main/{f_ist[i]}')
97
- print(f_ist[i])
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