Spaces:
Sleeping
Sleeping
honeysuckle
commited on
Commit
·
a6e2df6
1
Parent(s):
3b0fb19
fix
Browse files
app.py
CHANGED
|
@@ -32,8 +32,7 @@ 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 |
-
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:
|
|
|
|
| 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 |
+
character_names.append(character)
|
|
|
|
| 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:
|