Spaces:
Running
Running
fix bugs
Browse files
app.py
CHANGED
@@ -260,7 +260,7 @@ samplers = [
|
|
260 |
"PLMS",
|
261 |
]
|
262 |
|
263 |
-
with gr.Blocks(
|
264 |
with gr.Row():
|
265 |
with gr.Column(scale=6):
|
266 |
model = gr.Dropdown(interactive=True,value="absolutereality_v181.safetensors [3d9d4d2b]", show_label=True, label="Stable Diffusion Checkpoint", choices=prodia_client.list_models())
|
@@ -402,7 +402,7 @@ with gr.Blocks(css=css) as demo:
|
|
402 |
gallery_obj = gr.Gallery(height=500, columns=4)
|
403 |
|
404 |
t2i_event = text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed, batch_count, gallery_obj], outputs=[image_output, gallery_obj])
|
405 |
-
stop_btn.click(fn=None, outputs=None, cancels=[
|
406 |
|
407 |
image_input.upload(get_exif_data, inputs=[image_input], outputs=exif_output)
|
408 |
send_to_txt2img_btn.click(send_to_txt2img, inputs=[image_input], outputs=[tabs, prompt, negative_prompt, steps, seed,
|
|
|
260 |
"PLMS",
|
261 |
]
|
262 |
|
263 |
+
with gr.Blocks() as demo:
|
264 |
with gr.Row():
|
265 |
with gr.Column(scale=6):
|
266 |
model = gr.Dropdown(interactive=True,value="absolutereality_v181.safetensors [3d9d4d2b]", show_label=True, label="Stable Diffusion Checkpoint", choices=prodia_client.list_models())
|
|
|
402 |
gallery_obj = gr.Gallery(height=500, columns=4)
|
403 |
|
404 |
t2i_event = text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed, batch_count, gallery_obj], outputs=[image_output, gallery_obj])
|
405 |
+
stop_btn.click(fn=None, outputs=None, cancels=[t2i_event])
|
406 |
|
407 |
image_input.upload(get_exif_data, inputs=[image_input], outputs=exif_output)
|
408 |
send_to_txt2img_btn.click(send_to_txt2img, inputs=[image_input], outputs=[tabs, prompt, negative_prompt, steps, seed,
|