Update app.py
Browse files
app.py
CHANGED
@@ -28,15 +28,15 @@ footer {visibility: hidden !important;}
|
|
28 |
"""
|
29 |
|
30 |
with gr.Blocks(css=css) as dalle:
|
31 |
-
with gr.
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
38 |
negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry, fuzziness", lines=1, elem_id="negative-prompt-text-input")
|
39 |
-
|
40 |
text_button.click(query, inputs=[text_prompt, negative_prompt], outputs=image_output)
|
41 |
|
42 |
dalle.launch(show_api=False)
|
|
|
28 |
"""
|
29 |
|
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="a cute cat", lines=1, elem_id="prompt-text-input")
|
36 |
+
text_button = gr.Button("Generate", variant='primary', elem_id="gen-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)
|