Rooni commited on
Commit
cb1a375
1 Parent(s): ef5cf54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -89,20 +89,22 @@ with gr.Blocks(css=css) as dalle:
89
  with gr.Tab("Базовые настройки"):
90
  with gr.Row():
91
  with gr.Column(elem_id="prompt-container"):
92
- text_prompt = gr.Textbox(label="Prompt", placeholder="Описание изображения", lines=3, elem_id="prompt-text-input")
93
- model = gr.Radio(label="Модель", value="DALL-E 3 XL", choices=models_list)
 
 
94
 
95
 
96
  with gr.Tab("Расширенные настройки"):
97
- gr.Row():
98
  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")
99
- gr.Row():
100
  steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
101
- gr.Row():
102
  cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
103
- gr.Row():
104
  method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
105
- gr.Row():
106
  seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
107
 
108
 
 
89
  with gr.Tab("Базовые настройки"):
90
  with gr.Row():
91
  with gr.Column(elem_id="prompt-container"):
92
+ with gr.Row():
93
+ text_prompt = gr.Textbox(label="Prompt", placeholder="Описание изображения", lines=3, elem_id="prompt-text-input")
94
+ with gr.Row():
95
+ model = gr.Radio(label="Модель", value="DALL-E 3 XL", choices=models_list)
96
 
97
 
98
  with gr.Tab("Расширенные настройки"):
99
+ with gr.Row():
100
  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")
101
+ with gr.Row():
102
  steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
103
+ with gr.Row():
104
  cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
105
+ with gr.Row():
106
  method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
107
+ with gr.Row():
108
  seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
109
 
110