Update app.py
Browse files
app.py
CHANGED
@@ -30,13 +30,13 @@ footer {visibility: hidden !important;}
|
|
30 |
with gr.Blocks(css=css) as dalle:
|
31 |
with gr.Tab("Базовые настройки"):
|
32 |
with gr.Row():
|
33 |
-
image_output = gr.Image(type="pil", label="Output Image", elem_id="gallery")
|
34 |
with gr.Column(elem_id="prompt-container"):
|
35 |
-
text_prompt = gr.Textbox(label="Prompt", placeholder="
|
36 |
-
text_button = gr.Button("
|
|
|
37 |
|
38 |
with gr.Tab("Расширенные настройки"):
|
39 |
-
negative_prompt = gr.Textbox(label="Negative Prompt", 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)
|
|
|
30 |
with gr.Blocks(css=css) as dalle:
|
31 |
with gr.Tab("Базовые настройки"):
|
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 |
+
text_button = gr.Button("Генерация", variant='primary', elem_id="gen-button")
|
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)
|