Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def run(
|
|
45 |
prompt: str,
|
46 |
negative_prompt: str,
|
47 |
num_steps=25,
|
48 |
-
guidance_scale=
|
49 |
adapter_conditioning_scale=0.8,
|
50 |
seed=0,
|
51 |
) -> PIL.Image.Image:
|
@@ -77,7 +77,7 @@ with gr.Blocks() as demo:
|
|
77 |
image_mode="1",
|
78 |
invert_colors=True,
|
79 |
# shape=(1024, 1024),
|
80 |
-
brush_radius=
|
81 |
height=1024,
|
82 |
width=1024,
|
83 |
)
|
@@ -90,16 +90,16 @@ with gr.Blocks() as demo:
|
|
90 |
num_steps = gr.Slider(
|
91 |
label="Number of steps",
|
92 |
minimum=1,
|
93 |
-
maximum=
|
94 |
step=1,
|
95 |
-
value=
|
96 |
)
|
97 |
guidance_scale = gr.Slider(
|
98 |
label="Guidance scale",
|
99 |
minimum=0.1,
|
100 |
-
maximum=
|
101 |
step=0.1,
|
102 |
-
value=
|
103 |
)
|
104 |
adapter_conditioning_scale = gr.Slider(
|
105 |
label="Adapter Conditioning Ccale",
|
|
|
45 |
prompt: str,
|
46 |
negative_prompt: str,
|
47 |
num_steps=25,
|
48 |
+
guidance_scale=5,
|
49 |
adapter_conditioning_scale=0.8,
|
50 |
seed=0,
|
51 |
) -> PIL.Image.Image:
|
|
|
77 |
image_mode="1",
|
78 |
invert_colors=True,
|
79 |
# shape=(1024, 1024),
|
80 |
+
brush_radius=4,
|
81 |
height=1024,
|
82 |
width=1024,
|
83 |
)
|
|
|
90 |
num_steps = gr.Slider(
|
91 |
label="Number of steps",
|
92 |
minimum=1,
|
93 |
+
maximum=50,
|
94 |
step=1,
|
95 |
+
value=25,
|
96 |
)
|
97 |
guidance_scale = gr.Slider(
|
98 |
label="Guidance scale",
|
99 |
minimum=0.1,
|
100 |
+
maximum=10.0,
|
101 |
step=0.1,
|
102 |
+
value=5,
|
103 |
)
|
104 |
adapter_conditioning_scale = gr.Slider(
|
105 |
label="Adapter Conditioning Ccale",
|