Spaces:
Running
Running
Update app.py
#18
by
reach-vb
HF staff
- opened
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 |
-
|
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",
|