Spaces:
Runtime error
Runtime error
Update download.py
Browse files- download.py +8 -8
download.py
CHANGED
@@ -58,24 +58,24 @@ class OMG_download():
|
|
58 |
def download_characters(self):
|
59 |
REPO_ID = 'Fucius/OMG'
|
60 |
filename_list = ['lora/chris-evans.safetensors', 'lora/Harry_Potter.safetensors', 'lora/Hermione_Granger.safetensors', 'lora/jordan_torres_v2_xl.safetensors', 'lora/keira_lora_sdxl_v1-000008.safetensors', 'lora/lawrence_dh128_v1-step00012000.safetensors', 'lora/Gleb-Savchenko_Liam-Hemsworth.safetensors', 'lora/TaylorSwiftSDXL.safetensors']
|
61 |
-
if not os.path.exists('/home/user/app/checkpoint/
|
62 |
-
os.makedirs('/home/user/app/checkpoint/
|
63 |
for filename in filename_list:
|
64 |
-
local_file = os.path.join('/home/user/app/checkpoint/
|
65 |
|
66 |
if not os.path.exists(local_file):
|
67 |
-
hf_hub_download(repo_id=REPO_ID, filename=filename, local_dir='/home/user/app/checkpoint/
|
68 |
local_dir_use_symlinks=False)
|
69 |
def download_styles(self):
|
70 |
REPO_ID = 'Fucius/OMG'
|
71 |
filename_list = ['style/EldritchPaletteKnife.safetensors', 'style/Cinematic Hollywood Film.safetensors', 'style/Anime_Sketch_SDXL.safetensors']
|
72 |
-
if not os.path.exists('/home/user/app/checkpoint/
|
73 |
-
os.makedirs('/home/user/app/checkpoint/
|
74 |
for filename in filename_list:
|
75 |
-
local_file = os.path.join('/home/user/app/checkpoint/
|
76 |
|
77 |
if not os.path.exists(local_file):
|
78 |
-
hf_hub_download(repo_id=REPO_ID, filename=filename, local_dir='/home/user/app/checkpoint/
|
79 |
local_dir_use_symlinks=False)
|
80 |
|
81 |
if __name__ == '__main__':
|
|
|
58 |
def download_characters(self):
|
59 |
REPO_ID = 'Fucius/OMG'
|
60 |
filename_list = ['lora/chris-evans.safetensors', 'lora/Harry_Potter.safetensors', 'lora/Hermione_Granger.safetensors', 'lora/jordan_torres_v2_xl.safetensors', 'lora/keira_lora_sdxl_v1-000008.safetensors', 'lora/lawrence_dh128_v1-step00012000.safetensors', 'lora/Gleb-Savchenko_Liam-Hemsworth.safetensors', 'lora/TaylorSwiftSDXL.safetensors']
|
61 |
+
if not os.path.exists('/home/user/app/checkpoint/'):
|
62 |
+
os.makedirs('/home/user/app/checkpoint/')
|
63 |
for filename in filename_list:
|
64 |
+
local_file = os.path.join('/home/user/app/checkpoint/', filename)
|
65 |
|
66 |
if not os.path.exists(local_file):
|
67 |
+
hf_hub_download(repo_id=REPO_ID, filename=filename, local_dir='/home/user/app/checkpoint/',
|
68 |
local_dir_use_symlinks=False)
|
69 |
def download_styles(self):
|
70 |
REPO_ID = 'Fucius/OMG'
|
71 |
filename_list = ['style/EldritchPaletteKnife.safetensors', 'style/Cinematic Hollywood Film.safetensors', 'style/Anime_Sketch_SDXL.safetensors']
|
72 |
+
if not os.path.exists('/home/user/app/checkpoint/'):
|
73 |
+
os.makedirs('/home/user/app/checkpoint/')
|
74 |
for filename in filename_list:
|
75 |
+
local_file = os.path.join('/home/user/app/checkpoint/', filename)
|
76 |
|
77 |
if not os.path.exists(local_file):
|
78 |
+
hf_hub_download(repo_id=REPO_ID, filename=filename, local_dir='/home/user/app/checkpoint/',
|
79 |
local_dir_use_symlinks=False)
|
80 |
|
81 |
if __name__ == '__main__':
|