Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix error msg again
Browse files
app.py
CHANGED
@@ -16,8 +16,7 @@ CONVERSION_SCRIPT = "convert_lora_to_gguf.py"
|
|
16 |
|
17 |
def process_model(peft_model_id: str, q_method: str, private_repo, oauth_token: gr.OAuthToken | None):
|
18 |
if oauth_token is None or oauth_token.token is None:
|
19 |
-
gr.Error("You must be logged in to use GGUF-my-lora")
|
20 |
-
raise ValueError("You must be logged in to use GGUF-my-lora")
|
21 |
model_name = peft_model_id.split('/')[-1]
|
22 |
gguf_output_name = f"{model_name}-{q_method.lower()}.gguf"
|
23 |
|
|
|
16 |
|
17 |
def process_model(peft_model_id: str, q_method: str, private_repo, oauth_token: gr.OAuthToken | None):
|
18 |
if oauth_token is None or oauth_token.token is None:
|
19 |
+
raise gr.Error("You must be logged in to use GGUF-my-lora")
|
|
|
20 |
model_name = peft_model_id.split('/')[-1]
|
21 |
gguf_output_name = f"{model_name}-{q_method.lower()}.gguf"
|
22 |
|