Update app.py
Browse files
app.py
CHANGED
@@ -150,27 +150,12 @@ with gr.Blocks(css=css, theme="YTheme/KidsShool") as dalle:
|
|
150 |
with gr.Column(elem_id="prompt-container"):
|
151 |
with gr.Row():
|
152 |
text_prompt = gr.Textbox(label="Описание изображения", placeholder="Реалистичная кошка сидит на подоконнике...", lines=3, elem_id="prompt-text-input")
|
153 |
-
"""
|
154 |
-
with gr.Row():
|
155 |
-
model = gr.Radio(label="Модель", value="DALL-E 3 XL", choices=list(mmodels.keys()))
|
156 |
-
"""
|
157 |
|
158 |
|
159 |
with gr.Tab("Расширенные настройки"):
|
160 |
with gr.Row():
|
161 |
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")
|
162 |
-
|
163 |
-
with gr.Row():
|
164 |
-
steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
|
165 |
-
with gr.Row():
|
166 |
-
cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
|
167 |
-
with gr.Row():
|
168 |
-
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
|
169 |
-
with gr.Row():
|
170 |
-
strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
|
171 |
-
with gr.Row():
|
172 |
-
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
173 |
-
"""
|
174 |
with gr.Row():
|
175 |
gpt = gr.Checkbox(label="GPT (Улучшение описания)", value=True)
|
176 |
|
|
|
150 |
with gr.Column(elem_id="prompt-container"):
|
151 |
with gr.Row():
|
152 |
text_prompt = gr.Textbox(label="Описание изображения", placeholder="Реалистичная кошка сидит на подоконнике...", lines=3, elem_id="prompt-text-input")
|
|
|
|
|
|
|
|
|
153 |
|
154 |
|
155 |
with gr.Tab("Расширенные настройки"):
|
156 |
with gr.Row():
|
157 |
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")
|
158 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
with gr.Row():
|
160 |
gpt = gr.Checkbox(label="GPT (Улучшение описания)", value=True)
|
161 |
|