Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -199,9 +199,9 @@ if torch.cuda.is_available():
|
|
199 |
else:
|
200 |
pipe = None
|
201 |
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
}
|
206 |
|
207 |
character_files = utils.load_character_files("character")
|
|
|
199 |
else:
|
200 |
pipe = None
|
201 |
|
202 |
+
#get来获取键的值
|
203 |
+
styles = {k["name"]: (k.get("prompt", ""), k.get("negative_prompt", "")) for k in config.style_list}
|
204 |
+
quality_prompt = {k["name"]: (k.get("prompt", ""), k.get("negative_prompt", "")) for k in config.quality_prompt_list
|
205 |
}
|
206 |
|
207 |
character_files = utils.load_character_files("character")
|