Omnibus commited on
Commit
933af47
·
verified ·
1 Parent(s): eafb92c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def list_files(model_name):
11
  return gr.update(choices=[m for m in files],interactive=True)
12
 
13
  def load_bin(model_name,file_name):
14
- r = requests.get(f'https://huggingface.co/models/{model_name}/raw/main/{file_name}')
15
  return r.content
16
  #with open()
17
  #file = open(f'{name}/{f_name}','wb')
 
11
  return gr.update(choices=[m for m in files],interactive=True)
12
 
13
  def load_bin(model_name,file_name):
14
+ r = requests.get(f'https://huggingface.co/{model_name}/resolve/main/{file_name}')
15
  return r.content
16
  #with open()
17
  #file = open(f'{name}/{f_name}','wb')