Update app.py

#18
by reach-vb HF staff - opened
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -99,8 +99,7 @@ def process_model(model_id, q_method,oauth_token: gr.OAuthToken | None):
99
  try:
100
  upload_repo = username + "/" + model_name + "-mlx"
101
  convert(model_id, quantize=True)
102
- upload_repo(path="mlx_model", upload_repo=upload_repo, hf_path=repo_id, token=oauth_token.token)
103
- clear_cache()
104
  return (
105
  f'Find your repo <a href=\'{new_repo_url}\' target="_blank" style="text-decoration:underline">here</a>',
106
  "llama.png",
 
99
  try:
100
  upload_repo = username + "/" + model_name + "-mlx"
101
  convert(model_id, quantize=True)
102
+ upload_to_hub(path="mlx_model", upload_repo=upload_repo, hf_path=repo_id, token=oauth_token.token)
 
103
  return (
104
  f'Find your repo <a href=\'{new_repo_url}\' target="_blank" style="text-decoration:underline">here</a>',
105
  "llama.png",