Spaces:
Sleeping
Sleeping
honeysuckle
commited on
Commit
·
3b0fb19
1
Parent(s):
4131900
fix
Browse files
app.py
CHANGED
|
@@ -32,7 +32,8 @@ def prepare_characters(hf_path="OnMoon/loras"):
|
|
| 32 |
for file in files:
|
| 33 |
if file.endswith(".safetensors") and file.startswith(f"{hf_path}/sdxl_"):
|
| 34 |
character = file[len(f"{hf_path}/sdxl_"): -len(".safetensors")]
|
| 35 |
-
|
|
|
|
| 36 |
elif file.endswith(".json") and file.startswith(f"{hf_path}/sdxl_"):
|
| 37 |
character = file[len(f"{hf_path}/sdxl_"): -len(".json")]
|
| 38 |
with fs.open(file, 'r', encoding='utf-8') as file_json:
|
|
@@ -40,7 +41,6 @@ def prepare_characters(hf_path="OnMoon/loras"):
|
|
| 40 |
|
| 41 |
return character_names, character_configs
|
| 42 |
|
| 43 |
-
|
| 44 |
character_names, character_configs = prepare_characters()
|
| 45 |
|
| 46 |
|
|
|
|
| 32 |
for file in files:
|
| 33 |
if file.endswith(".safetensors") and file.startswith(f"{hf_path}/sdxl_"):
|
| 34 |
character = file[len(f"{hf_path}/sdxl_"): -len(".safetensors")]
|
| 35 |
+
if character != 'makima':
|
| 36 |
+
character_names.append(character)
|
| 37 |
elif file.endswith(".json") and file.startswith(f"{hf_path}/sdxl_"):
|
| 38 |
character = file[len(f"{hf_path}/sdxl_"): -len(".json")]
|
| 39 |
with fs.open(file, 'r', encoding='utf-8') as file_json:
|
|
|
|
| 41 |
|
| 42 |
return character_names, character_configs
|
| 43 |
|
|
|
|
| 44 |
character_names, character_configs = prepare_characters()
|
| 45 |
|
| 46 |
|