Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +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.token is None:
|
|
|
19 |
raise ValueError("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"
|
|
|
16 |
|
17 |
def process_model(peft_model_id: str, q_method: str, private_repo, oauth_token: gr.OAuthToken | None):
|
18 |
if 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"
|