Rooni commited on
Commit
e577eb4
1 Parent(s): eb5cb7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -28,15 +28,15 @@ footer {visibility: hidden !important;}
28
  """
29
 
30
  with gr.Blocks(css=css) as dalle:
31
- with gr.Row():
32
- image_output = gr.Image(type="pil", label="Output Image", elem_id="gallery")
33
- with gr.Column(elem_id="prompt-container"):
34
- text_prompt = gr.Textbox(label="Prompt", placeholder="a cute cat", lines=1, elem_id="prompt-text-input")
35
- text_button = gr.Button("Generate", variant='primary', elem_id="gen-button")
36
-
37
- with gr.Accordion("Advanced settings", open=False):
 
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)