reach-vb HF staff commited on
Commit
21f9f87
1 Parent(s): 6f0aef5
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -98,8 +98,11 @@ def process_model(model_id, q_method,oauth_token: gr.OAuthToken | None):
98
 
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",
 
98
 
99
  try:
100
  upload_repo = username + "/" + model_name + "-mlx"
101
+ print(upload_repo)
102
  convert(model_id, quantize=True)
103
+ print("Conversion done")
104
  upload_to_hub(path="mlx_model", upload_repo=upload_repo, hf_path=repo_id, token=oauth_token.token)
105
+ print("Upload done")
106
  return (
107
  f'Find your repo <a href=\'{new_repo_url}\' target="_blank" style="text-decoration:underline">here</a>',
108
  "llama.png",