Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
#11
by
TastyRice
- opened
app.py
CHANGED
@@ -199,9 +199,9 @@ if torch.cuda.is_available():
|
|
199 |
else:
|
200 |
pipe = None
|
201 |
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
}
|
206 |
|
207 |
wildcard_files = utils.load_wildcard_files("wildcard")
|
|
|
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 |
wildcard_files = utils.load_wildcard_files("wildcard")
|