Commit
·
ffdb409
1
Parent(s):
f7e3e12
change deprecated api code
Browse filesupdate_repo_visibility is deprecated
exllamav2 scripts/auto-exl2-upload/exl2-quant.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
#usually it's what is on the inside that counts, not this time. This script is a mess, but at least it works.
|
2 |
#import required modules
|
3 |
-
from huggingface_hub import login, get_token, whoami, repo_exists, file_exists, upload_folder, create_repo, upload_file, create_branch,
|
4 |
import os
|
5 |
import sys
|
6 |
import subprocess
|
@@ -240,7 +240,7 @@ if delmodel == 'y':
|
|
240 |
|
241 |
#update repo visibility if user chose to
|
242 |
if priv2pub == 'y':
|
243 |
-
|
244 |
print("Repo is now public.")
|
245 |
|
246 |
#if new sign in, tell user
|
|
|
1 |
#usually it's what is on the inside that counts, not this time. This script is a mess, but at least it works.
|
2 |
#import required modules
|
3 |
+
from huggingface_hub import login, get_token, whoami, repo_exists, file_exists, upload_folder, create_repo, upload_file, create_branch, update_repo_settings
|
4 |
import os
|
5 |
import sys
|
6 |
import subprocess
|
|
|
240 |
|
241 |
#update repo visibility if user chose to
|
242 |
if priv2pub == 'y':
|
243 |
+
update_repo_settings(f"{whoami().get('name', None)}/{modelname}-exl2", private=False)
|
244 |
print("Repo is now public.")
|
245 |
|
246 |
#if new sign in, tell user
|