Spaces:
Nymbo
/
Running on CPU Upgrade

Rooni commited on
Commit
8172e17
1 Parent(s): 3eb21bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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="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)
 
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)