xp3857 commited on
Commit
9c76c30
·
1 Parent(s): 830a4d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,7 +94,7 @@ def get_f(r_name,spaces,token):
94
  for file in f_ist:
95
  t_file=open(f'{uid}/{file}','w')
96
  r = requests.get(f'https://huggingface.co/spaces/{r_name}/{space}/raw/main/{file}')
97
- t_file.write(r)
98
  t_file.close()
99
  files_b.append(f'{uid}/{file}')
100
  print(file)
@@ -185,7 +185,7 @@ with gr.Blocks() as build:
185
  def cyc(x):
186
  return x,None
187
 
188
- f_btn.click(get_f,[r_name,ss_name,token],None)
189
  r_t.change(cyc,r_t,[m_t,files])
190
 
191
  s_btn.click(show_s,r_name,[s_name,ss_name])
 
94
  for file in f_ist:
95
  t_file=open(f'{uid}/{file}','w')
96
  r = requests.get(f'https://huggingface.co/spaces/{r_name}/{space}/raw/main/{file}')
97
+ t_file.write(r.text)
98
  t_file.close()
99
  files_b.append(f'{uid}/{file}')
100
  print(file)
 
185
  def cyc(x):
186
  return x,None
187
 
188
+ f_btn.click(get_f,[r_name,ss_name,token],a_files)
189
  r_t.change(cyc,r_t,[m_t,files])
190
 
191
  s_btn.click(show_s,r_name,[s_name,ss_name])