Spaces:
Runtime error
Runtime error
fix examples.py
Browse files- app.py +3 -3
- examples/examples.py +2 -2
app.py
CHANGED
@@ -547,8 +547,8 @@ class GuiSD:
|
|
547 |
sdxl_in_vae = vae_model and "sdxl" in vae_model.lower()
|
548 |
model_type = "SDXL" if model_is_xl else "SD 1.5"
|
549 |
incompatible_vae = ((model_is_xl and
|
550 |
-
|
551 |
-
|
552 |
(not model_is_xl and
|
553 |
sdxl_in_vae))
|
554 |
|
@@ -1777,4 +1777,4 @@ app.queue()
|
|
1777 |
app.launch(
|
1778 |
show_error=True,
|
1779 |
debug=True,
|
1780 |
-
)
|
|
|
547 |
sdxl_in_vae = vae_model and "sdxl" in vae_model.lower()
|
548 |
model_type = "SDXL" if model_is_xl else "SD 1.5"
|
549 |
incompatible_vae = ((model_is_xl and
|
550 |
+
vae_model and
|
551 |
+
not sdxl_in_vae) or
|
552 |
(not model_is_xl and
|
553 |
sdxl_in_vae))
|
554 |
|
|
|
1777 |
app.launch(
|
1778 |
show_error=True,
|
1779 |
debug=True,
|
1780 |
+
)
|
examples/examples.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
example_prompts = [
|
2 |
[
|
3 |
"""
|
4 |
1girl, loli, serious, cocky, sporty, basketball jersey, lakers, basketball, half body,
|
@@ -325,4 +325,4 @@ example_prompts = [
|
|
325 |
"Compel",
|
326 |
"Nearest",
|
327 |
],
|
328 |
-
]
|
|
|
1 |
+
example_prompts: list = [
|
2 |
[
|
3 |
"""
|
4 |
1girl, loli, serious, cocky, sporty, basketball jersey, lakers, basketball, half body,
|
|
|
325 |
"Compel",
|
326 |
"Nearest",
|
327 |
],
|
328 |
+
]
|