Spaces:
Runtime error
Runtime error
Commit ·
4425514
1
Parent(s): e0a1f6f
Update app.py
Browse files123 unmodified lines12412512612712812913013127 unmodified lines159160161162163164165166167168169170171172173174123 unmodified lineswith gr.Row():with gr.Column(scale=3):with gr.Tab("Generation"):with gr.Row():with gr.Column(scale=1):sampler = gr.Dropdown(value="DPM++ SDE", show_label=True, label="Sampler", choices=["Euler",27 unmodified lineswith gr.Column(scale=1):batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)batch_count = gr.Slider(label="Batch Count", maximum=4, minimum=1, value=2, step=1)cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)seed = gr.Number(label="Seed", value=-1, info = """'-1' is a random seed""")with gr.Column(scale=2):image_output = gr.Gallery(label="Result Image(s)", show_download_button=False, show_share_button=True)text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)demo.queue(concurrency_count=10)123 unmodified lines12412512612712812913013113213313413527 unmodified lines163164165166167168169170171172173123 unmodified lineswith gr.Row():with gr.Column(scale=3):with gr.Column(scale=2):image_output = gr.Gallery(label="Result Image(s)", show_download_button=False, show_share_button=True)with gr.Accordion("Advanced options", open=False):with gr.Column(scale=1):sampler = gr.Dropdown(value="DPM++ SDE", show_label=True, label="Sampler", choices=["Euler",27 unmodified lineswith gr.Column(scale=1):batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)seed = gr.Number(label="Seed", value=-1, info = """'-1' is a random seed""")text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)demo.queue(concurrency_count=10)
app.py+7-8