Spaces:
Runtime error
Runtime error
Update app_base.py
Browse files- app_base.py +0 -6
app_base.py
CHANGED
|
@@ -8,12 +8,6 @@ from utils import MAX_SEED, randomize_seed_fn, styles, style_names, apply_style
|
|
| 8 |
|
| 9 |
|
| 10 |
default_style_name = "Photographic"
|
| 11 |
-
default_style = styles[default_style_name]
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
def apply_style(style_name: str, positive: str, negative: str = "") -> tuple[str, str]:
|
| 15 |
-
p, n = styles.get(style_name, default_style)
|
| 16 |
-
return p.replace("{prompt}", positive), n + negative
|
| 17 |
|
| 18 |
|
| 19 |
def create_demo(model: Model) -> gr.Blocks:
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
default_style_name = "Photographic"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
def create_demo(model: Model) -> gr.Blocks:
|