Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -207,10 +207,7 @@ css = """
|
|
207 |
"""
|
208 |
|
209 |
with gr.Blocks(css=css) as demo:
|
210 |
-
|
211 |
-
with gr.Column(scale=6):
|
212 |
-
model = gr.Dropdown(interactive=True,value="absolutereality_v181.safetensors [3d9d4d2b]", show_label=True, label="Stable Diffusion Checkpoint", choices=prodia_client.list_models())
|
213 |
-
|
214 |
with gr.Tabs() as tabs:
|
215 |
with gr.Tab("txt2img", id='t2i'):
|
216 |
|
@@ -290,6 +287,12 @@ with gr.Blocks(css=css) as demo:
|
|
290 |
i2i_text_button = gr.Button("Генерация", variant='primary', elem_id="generate")
|
291 |
with gr.Column(scale=2):
|
292 |
i2i_image_output = gr.Image()
|
293 |
-
|
294 |
i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt, model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height, i2i_seed], outputs=i2i_image_output)
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
demo.queue(concurrency_count=64, max_size=80, api_open=False).launch(max_threads=256)
|
|
|
207 |
"""
|
208 |
|
209 |
with gr.Blocks(css=css) as demo:
|
210 |
+
|
|
|
|
|
|
|
211 |
with gr.Tabs() as tabs:
|
212 |
with gr.Tab("txt2img", id='t2i'):
|
213 |
|
|
|
287 |
i2i_text_button = gr.Button("Генерация", variant='primary', elem_id="generate")
|
288 |
with gr.Column(scale=2):
|
289 |
i2i_image_output = gr.Image()
|
290 |
+
|
291 |
i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt, model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height, i2i_seed], outputs=i2i_image_output)
|
292 |
+
|
293 |
+
with gr.Tab("Модель", id='mdl'):
|
294 |
+
with gr.Row():
|
295 |
+
with gr.Column(scale=6):
|
296 |
+
model = gr.Radio(interactive=True,value="absolutereality_v181.safetensors [3d9d4d2b]", show_label=True, label="Модель", choices=prodia_client.list_models())
|
297 |
+
|
298 |
demo.queue(concurrency_count=64, max_size=80, api_open=False).launch(max_threads=256)
|