Spaces:
Running
Running
Update app.py (#19)
Browse files- Update app.py (faa458ff6609f50bfce2fd1e807076ae9c87998a)
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",
|