Spaces:
Running
Running
Update app.py (#54)
Browse files- Update app.py (16716277da8067a2befe2c686d8b9660581ffd34)
app.py
CHANGED
@@ -26,7 +26,7 @@ def script_to_use(model_id, api):
|
|
26 |
return "convert.py" if arch in LLAMA_LIKE_ARCHS else "convert-hf-to-gguf.py"
|
27 |
|
28 |
def process_model(model_id, q_method, private_repo, oauth_token: gr.OAuthToken | None):
|
29 |
-
if token is None:
|
30 |
raise ValueError("You must be logged in to use GGUF-my-repo")
|
31 |
model_name = model_id.split('/')[-1]
|
32 |
fp16 = f"{model_name}/{model_name.lower()}.fp16.bin"
|
|
|
26 |
return "convert.py" if arch in LLAMA_LIKE_ARCHS else "convert-hf-to-gguf.py"
|
27 |
|
28 |
def process_model(model_id, q_method, private_repo, oauth_token: gr.OAuthToken | None):
|
29 |
+
if oauth_token.token is None:
|
30 |
raise ValueError("You must be logged in to use GGUF-my-repo")
|
31 |
model_name = model_id.split('/')[-1]
|
32 |
fp16 = f"{model_name}/{model_name.lower()}.fp16.bin"
|