ngxson HF Staff commited on
Commit
0c7ebbe
·
verified ·
1 Parent(s): 506106f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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"