reach-vb HF staff commited on
Commit
d950042
·
verified ·
1 Parent(s): ee1187d

Update app.py (#24)

Browse files

- Update app.py (a85705a3ecfa6c3f409f8dd3a08fed29fb9fa6a6)

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -99,7 +99,7 @@ def process_model(model_id, q_method, oauth_token: gr.OAuthToken | None):
99
  mlx_path = os.path.join(tmpdir, "mlx")
100
  convert(model_id, mlx_path=mlx_path, quantize=True, q_bits=QUANT_PARAMS[q_method])
101
  print("Conversion done")
102
- upload_to_hub(path=mlx_path, upload_repo=upload_repo, hf_path=model_id, token=oauth_token)
103
  print("Upload done")
104
  return (
105
  f'Find your repo <a href="https://hf.co/{upload_repo}" target="_blank" style="text-decoration:underline">here</a>',
 
99
  mlx_path = os.path.join(tmpdir, "mlx")
100
  convert(model_id, mlx_path=mlx_path, quantize=True, q_bits=QUANT_PARAMS[q_method])
101
  print("Conversion done")
102
+ upload_to_hub(path=mlx_path, upload_repo=upload_repo, hf_path=model_id, oauth_token=oauth_token)
103
  print("Upload done")
104
  return (
105
  f'Find your repo <a href="https://hf.co/{upload_repo}" target="_blank" style="text-decoration:underline">here</a>',