reach-vb HF staff commited on
Commit
7c36326
1 Parent(s): d2fb1de
Files changed (1) hide show
  1. app.py +1 -1
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"