Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Commit
•
b79eb08
1
Parent(s):
9d28ae6
Update app.py
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
|
|
128 |
gr.Markdown("## SD3.5 TURBO")
|
129 |
|
130 |
with gr.Row():
|
131 |
-
prompt = gr.
|
132 |
label="Prompt",
|
133 |
show_label=False,
|
134 |
max_lines=1,
|
@@ -157,12 +157,12 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
|
|
157 |
label="Grid Size"
|
158 |
)
|
159 |
|
160 |
-
with gr.Accordion("Advanced Settings", open=False, visible=
|
161 |
-
negative_prompt = gr.
|
162 |
label="Negative prompt",
|
163 |
max_lines=1,
|
164 |
placeholder="Enter a negative prompt",
|
165 |
-
|
166 |
)
|
167 |
|
168 |
seed = gr.Slider(
|
@@ -170,7 +170,7 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
|
|
170 |
minimum=0,
|
171 |
maximum=MAX_SEED,
|
172 |
step=1,
|
173 |
-
value=
|
174 |
)
|
175 |
|
176 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
@@ -198,7 +198,7 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
|
|
198 |
minimum=0.0,
|
199 |
maximum=7.5,
|
200 |
step=0.1,
|
201 |
-
value=
|
202 |
)
|
203 |
|
204 |
num_inference_steps = gr.Slider(
|
@@ -215,7 +215,8 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
|
|
215 |
fn=infer,
|
216 |
cache_examples=True)
|
217 |
|
218 |
-
|
|
|
219 |
fn=infer,
|
220 |
inputs=[
|
221 |
prompt,
|
|
|
128 |
gr.Markdown("## SD3.5 TURBO")
|
129 |
|
130 |
with gr.Row():
|
131 |
+
prompt = gr.Text(
|
132 |
label="Prompt",
|
133 |
show_label=False,
|
134 |
max_lines=1,
|
|
|
157 |
label="Grid Size"
|
158 |
)
|
159 |
|
160 |
+
with gr.Accordion("Advanced Settings", open=False, visible=False):
|
161 |
+
negative_prompt = gr.Text(
|
162 |
label="Negative prompt",
|
163 |
max_lines=1,
|
164 |
placeholder="Enter a negative prompt",
|
165 |
+
visible=False,
|
166 |
)
|
167 |
|
168 |
seed = gr.Slider(
|
|
|
170 |
minimum=0,
|
171 |
maximum=MAX_SEED,
|
172 |
step=1,
|
173 |
+
value=0,
|
174 |
)
|
175 |
|
176 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
|
|
198 |
minimum=0.0,
|
199 |
maximum=7.5,
|
200 |
step=0.1,
|
201 |
+
value=0.0,
|
202 |
)
|
203 |
|
204 |
num_inference_steps = gr.Slider(
|
|
|
215 |
fn=infer,
|
216 |
cache_examples=True)
|
217 |
|
218 |
+
gr.on(
|
219 |
+
triggers=[run_button.click, prompt.submit],
|
220 |
fn=infer,
|
221 |
inputs=[
|
222 |
prompt,
|