Spaces:
Running
on
A10G
Running
on
A10G
fix error message when user not logged in
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ def split_upload_model(model_path: str, outdir: str, repo_id: str, oauth_token:
|
|
115 |
print("Sharded model has been uploaded successfully!")
|
116 |
|
117 |
def process_model(model_id, q_method, use_imatrix, imatrix_q_method, private_repo, train_data_file, split_model, split_max_tensors, split_max_size, oauth_token: gr.OAuthToken | None):
|
118 |
-
if oauth_token.token is None:
|
119 |
raise ValueError("You must be logged in to use GGUF-my-repo")
|
120 |
model_name = model_id.split('/')[-1]
|
121 |
|
|
|
115 |
print("Sharded model has been uploaded successfully!")
|
116 |
|
117 |
def process_model(model_id, q_method, use_imatrix, imatrix_q_method, private_repo, train_data_file, split_model, split_max_tensors, split_max_size, oauth_token: gr.OAuthToken | None):
|
118 |
+
if oauth_token is None or oauth_token.token is None:
|
119 |
raise ValueError("You must be logged in to use GGUF-my-repo")
|
120 |
model_name = model_id.split('/')[-1]
|
121 |
|