Spaces:
Sleeping
Sleeping
Oleg Shulyakov
commited on
Commit
·
558ae57
1
Parent(s):
ec28f03
Use same repo
Browse files
app.py
CHANGED
|
@@ -218,7 +218,9 @@ def process_model(model_id, q_method, use_imatrix, imatrix_q_method, private_rep
|
|
| 218 |
|
| 219 |
# Create empty repo
|
| 220 |
username = whoami(oauth_token.token)["name"]
|
| 221 |
-
|
|
|
|
|
|
|
| 222 |
new_repo_id = new_repo_url.repo_id
|
| 223 |
print("Repo created successfully!", new_repo_url)
|
| 224 |
|
|
|
|
| 218 |
|
| 219 |
# Create empty repo
|
| 220 |
username = whoami(oauth_token.token)["name"]
|
| 221 |
+
|
| 222 |
+
repo_name = f"{username}/{model_name}-GGUF"
|
| 223 |
+
new_repo_url = api.create_repo(repo_id=repo_name, exist_ok=True, private=private_repo)
|
| 224 |
new_repo_id = new_repo_url.repo_id
|
| 225 |
print("Repo created successfully!", new_repo_url)
|
| 226 |
|