Update app.py
Browse files
app.py
CHANGED
|
@@ -205,8 +205,11 @@ css = """
|
|
| 205 |
height: 100%;
|
| 206 |
}
|
| 207 |
"""
|
| 208 |
-
|
| 209 |
with gr.Blocks(css=css) as demo:
|
|
|
|
|
|
|
|
|
|
| 210 |
|
| 211 |
with gr.Tabs() as tabs:
|
| 212 |
|
|
@@ -290,10 +293,5 @@ with gr.Blocks(css=css) as demo:
|
|
| 290 |
i2i_image_output = gr.Image()
|
| 291 |
|
| 292 |
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)
|
| 293 |
-
|
| 294 |
-
with gr.Tab("Модель", id='mdl'):
|
| 295 |
-
with gr.Row():
|
| 296 |
-
with gr.Column(scale=6):
|
| 297 |
-
model = gr.Radio(interactive=True,value="absolutereality_v181.safetensors [3d9d4d2b]", show_label=True, label="Модель", choices=prodia_client.list_models())
|
| 298 |
|
| 299 |
demo.queue(concurrency_count=64, max_size=80, api_open=False).launch(max_threads=256)
|
|
|
|
| 205 |
height: 100%;
|
| 206 |
}
|
| 207 |
"""
|
| 208 |
+
|
| 209 |
with gr.Blocks(css=css) as demo:
|
| 210 |
+
with gr.Row():
|
| 211 |
+
with gr.Column(scale=6):
|
| 212 |
+
model = gr.Dropdown(interactive=True,value="absolutereality_v181.safetensors [3d9d4d2b]", show_label=True, label="Модель", choices=prodia_client.list_models())
|
| 213 |
|
| 214 |
with gr.Tabs() as tabs:
|
| 215 |
|
|
|
|
| 293 |
i2i_image_output = gr.Image()
|
| 294 |
|
| 295 |
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 296 |
|
| 297 |
demo.queue(concurrency_count=64, max_size=80, api_open=False).launch(max_threads=256)
|