Spaces:
Runtime error
Runtime error
Commit
Β·
e1620c0
1
Parent(s):
4f33d6c
Dungeon Map, Steps up to 6
Browse files
app.py
CHANGED
|
@@ -202,7 +202,7 @@ style_list = [
|
|
| 202 |
|
| 203 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
| 204 |
STYLE_NAMES = list(styles.keys())
|
| 205 |
-
DEFAULT_STYLE_NAME = "
|
| 206 |
|
| 207 |
# Function to apply selected style
|
| 208 |
def apply_style(style_name: str, positive: str, negative: str = ""):
|
|
@@ -218,7 +218,7 @@ def infer(
|
|
| 218 |
randomize_seed=False,
|
| 219 |
width=1024,
|
| 220 |
height=1024,
|
| 221 |
-
num_inference_steps=
|
| 222 |
progress=gr.Progress(track_tqdm=True),
|
| 223 |
):
|
| 224 |
if randomize_seed:
|
|
@@ -435,7 +435,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 435 |
minimum=1,
|
| 436 |
maximum=50,
|
| 437 |
step=1,
|
| 438 |
-
value=
|
| 439 |
)
|
| 440 |
|
| 441 |
# Examples with styles
|
|
|
|
| 202 |
|
| 203 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
| 204 |
STYLE_NAMES = list(styles.keys())
|
| 205 |
+
DEFAULT_STYLE_NAME = "Dungeon Map"
|
| 206 |
|
| 207 |
# Function to apply selected style
|
| 208 |
def apply_style(style_name: str, positive: str, negative: str = ""):
|
|
|
|
| 218 |
randomize_seed=False,
|
| 219 |
width=1024,
|
| 220 |
height=1024,
|
| 221 |
+
num_inference_steps=6,
|
| 222 |
progress=gr.Progress(track_tqdm=True),
|
| 223 |
):
|
| 224 |
if randomize_seed:
|
|
|
|
| 435 |
minimum=1,
|
| 436 |
maximum=50,
|
| 437 |
step=1,
|
| 438 |
+
value=6,
|
| 439 |
)
|
| 440 |
|
| 441 |
# Examples with styles
|