Spaces:
Sleeping
Sleeping
Update app.py (#16)
Browse files- Update app.py (859a065b2191ebf0663bf84a428dcf8e5e5f6c76)
app.py
CHANGED
@@ -19,7 +19,8 @@ from apscheduler.schedulers.background import BackgroundScheduler
|
|
19 |
|
20 |
from textwrap import dedent
|
21 |
|
22 |
-
|
|
|
23 |
|
24 |
from typing import Any, Callable, Dict, Generator, List, Optional, Tuple, Type, Union
|
25 |
|
@@ -45,7 +46,7 @@ def upload_to_hub(path, upload_repo, hf_path, token):
|
|
45 |
f"""
|
46 |
# {upload_repo}
|
47 |
|
48 |
-
The Model [{upload_repo}](https://huggingface.co/{upload_repo}) was converted to MLX format from [{hf_path}](https://huggingface.co/{hf_path}) using mlx-lm version **{__version__}**.
|
49 |
|
50 |
## Use with mlx
|
51 |
|
|
|
19 |
|
20 |
from textwrap import dedent
|
21 |
|
22 |
+
import mlx_lm
|
23 |
+
from mlx_lm import convert
|
24 |
|
25 |
from typing import Any, Callable, Dict, Generator, List, Optional, Tuple, Type, Union
|
26 |
|
|
|
46 |
f"""
|
47 |
# {upload_repo}
|
48 |
|
49 |
+
The Model [{upload_repo}](https://huggingface.co/{upload_repo}) was converted to MLX format from [{hf_path}](https://huggingface.co/{hf_path}) using mlx-lm version **{mlx_lm.__version__}**.
|
50 |
|
51 |
## Use with mlx
|
52 |
|