Spaces:
Running
Running
Update app.py (#10)
Browse files- Update app.py (f009ab34b8beff8304671f42c57eafb8139523b5)
app.py
CHANGED
@@ -18,12 +18,10 @@ from textwrap import dedent
|
|
18 |
|
19 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
20 |
|
21 |
-
|
22 |
def process_model(model_id, q_method, private_repo, oauth_token: gr.OAuthToken | None):
|
23 |
if oauth_token.token is None:
|
24 |
-
raise ValueError("You must be logged in to use
|
25 |
model_name = model_id.split('/')[-1]
|
26 |
-
fp16 = f"{model_name}.fp16.gguf"
|
27 |
|
28 |
try:
|
29 |
api = HfApi(token=oauth_token.token)
|
|
|
18 |
|
19 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
20 |
|
|
|
21 |
def process_model(model_id, q_method, private_repo, oauth_token: gr.OAuthToken | None):
|
22 |
if oauth_token.token is None:
|
23 |
+
raise ValueError("You must be logged in to use mlx-my-repo")
|
24 |
model_name = model_id.split('/')[-1]
|
|
|
25 |
|
26 |
try:
|
27 |
api = HfApi(token=oauth_token.token)
|