Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,11 +32,16 @@ with gr.Blocks(css=css) as dalle:
|
|
| 32 |
with gr.Row():
|
| 33 |
with gr.Column(elem_id="prompt-container"):
|
| 34 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Описание изображения", lines=1, elem_id="prompt-text-input")
|
| 35 |
-
|
| 36 |
-
image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery")
|
| 37 |
|
| 38 |
with gr.Tab("Расширенные настройки"):
|
| 39 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Чего не должно быть на изображении", value="text, blurry, fuzziness", lines=1, elem_id="negative-prompt-text-input")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
text_button.click(query, inputs=[text_prompt, negative_prompt], outputs=image_output)
|
| 41 |
|
| 42 |
dalle.launch(show_api=False)
|
|
|
|
| 32 |
with gr.Row():
|
| 33 |
with gr.Column(elem_id="prompt-container"):
|
| 34 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Описание изображения", lines=1, elem_id="prompt-text-input")
|
| 35 |
+
|
|
|
|
| 36 |
|
| 37 |
with gr.Tab("Расширенные настройки"):
|
| 38 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Чего не должно быть на изображении", value="text, blurry, fuzziness", lines=1, elem_id="negative-prompt-text-input")
|
| 39 |
+
|
| 40 |
+
with gr.Row():
|
| 41 |
+
text_button = gr.Button("Генерация", variant='primary', elem_id="gen-button")
|
| 42 |
+
with gr.Row():
|
| 43 |
+
image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery")
|
| 44 |
+
|
| 45 |
text_button.click(query, inputs=[text_prompt, negative_prompt], outputs=image_output)
|
| 46 |
|
| 47 |
dalle.launch(show_api=False)
|