Spaces:
Sleeping
Sleeping
Update app.py (#24)
Browse files- Update app.py (a85705a3ecfa6c3f409f8dd3a08fed29fb9fa6a6)
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,
|
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>',
|