Nymbo commited on
Commit
b0f5912
1 Parent(s): 96d7f6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -152,17 +152,17 @@ footer {visibility: hidden !important;}
152
  """
153
 
154
  with gr.Blocks(css=css) as dalle:
155
- with gr.Tab("Базовые настройки"):
156
  with gr.Row():
157
  with gr.Column(elem_id="prompt-container"):
158
  with gr.Row():
159
- text_prompt = gr.Textbox(label="Prompt", placeholder="Описание изображения", lines=3, elem_id="prompt-text-input")
160
  with gr.Row():
161
- model = gr.Radio(label="Модель", value="DALL-E 3 XL", choices=models_list)
162
 
163
 
164
 
165
- with gr.Tab("Расширенные настройки"):
166
  with gr.Row():
167
  negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Чего не должно быть на изображении", value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness", lines=3, elem_id="negative-prompt-text-input")
168
  with gr.Row():
@@ -178,14 +178,14 @@ with gr.Blocks(css=css) as dalle:
178
  with gr.Row():
179
  gpt = gr.Checkbox(label="ChatGPT")
180
 
181
- with gr.Tab("Информация"):
182
  with gr.Row():
183
  gr.Textbox(label="Шаблон prompt", value="{prompt} | ultra detail, ultra elaboration, ultra quality, perfect.")
184
 
185
  with gr.Row():
186
- text_button = gr.Button("Генерация", variant='primary', elem_id="gen-button")
187
  with gr.Row():
188
- image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery")
189
 
190
  text_button.click(query, inputs=[text_prompt, model, negative_prompt, steps, cfg, method, seed, strength, gpt], outputs=image_output)
191
 
 
152
  """
153
 
154
  with gr.Blocks(css=css) as dalle:
155
+ with gr.Tab("Basic Settings"):
156
  with gr.Row():
157
  with gr.Column(elem_id="prompt-container"):
158
  with gr.Row():
159
+ text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=3, elem_id="prompt-text-input")
160
  with gr.Row():
161
+ model = gr.Radio(label="Model", value="Absolute Reality 1.8.1", choices=models_list)
162
 
163
 
164
 
165
+ with gr.Tab("Advanced Settings"):
166
  with gr.Row():
167
  negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Чего не должно быть на изображении", value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness", lines=3, elem_id="negative-prompt-text-input")
168
  with gr.Row():
 
178
  with gr.Row():
179
  gpt = gr.Checkbox(label="ChatGPT")
180
 
181
+ with gr.Tab("Information"):
182
  with gr.Row():
183
  gr.Textbox(label="Шаблон prompt", value="{prompt} | ultra detail, ultra elaboration, ultra quality, perfect.")
184
 
185
  with gr.Row():
186
+ text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
187
  with gr.Row():
188
+ image_output = gr.Image(type="pil", label="Image Output", elem_id="gallery")
189
 
190
  text_button.click(query, inputs=[text_prompt, model, negative_prompt, steps, cfg, method, seed, strength, gpt], outputs=image_output)
191