Update app.py
Browse files
app.py
CHANGED
@@ -203,15 +203,17 @@ with gr.Blocks(css=css) as demo:
|
|
203 |
with gr.Tabs() as tabs:
|
204 |
with gr.Row():
|
205 |
with gr.Column(scale=3):
|
206 |
-
with gr.Tab("
|
207 |
-
with gr.
|
208 |
-
prompt = gr.Textbox(
|
209 |
-
|
210 |
-
with gr.Accordion(label="Модель", open=False):
|
211 |
model = gr.Radio(interactive=True, value="absolutereality_v181.safetensors [3d9d4d2b]", show_label=False, choices=prodia_client.list_models())
|
212 |
|
213 |
with gr.Tab("Расширенные настройки"):
|
214 |
with gr.Row():
|
|
|
|
|
215 |
with gr.Column(scale=1):
|
216 |
sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method", choices=prodia_client.list_samplers())
|
217 |
with gr.Column(scale=1):
|
@@ -220,10 +222,6 @@ with gr.Blocks(css=css) as demo:
|
|
220 |
width = gr.Slider(label="Ширина", minimum=15, maximum=1024, value=512, step=8)
|
221 |
height = gr.Slider(label="Длина", minimum=15, maximum=1024, value=512, step=8)
|
222 |
|
223 |
-
with gr.Column(scale=1):
|
224 |
-
batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
|
225 |
-
batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
|
226 |
-
|
227 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
|
228 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=10000000, value=-1)
|
229 |
|
|
|
203 |
with gr.Tabs() as tabs:
|
204 |
with gr.Row():
|
205 |
with gr.Column(scale=3):
|
206 |
+
with gr.Tab("Базовые настройки"):
|
207 |
+
with gr.Row():
|
208 |
+
prompt = gr.Textbox(placeholder="Введите описание изображения...", show_label=True, label="Описание изображения", lines=3)
|
209 |
+
|
210 |
+
with gr.Accordion(label="Модель нейросети:", open=False):
|
211 |
model = gr.Radio(interactive=True, value="absolutereality_v181.safetensors [3d9d4d2b]", show_label=False, choices=prodia_client.list_models())
|
212 |
|
213 |
with gr.Tab("Расширенные настройки"):
|
214 |
with gr.Row():
|
215 |
+
with gr.Row():
|
216 |
+
negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry")
|
217 |
with gr.Column(scale=1):
|
218 |
sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method", choices=prodia_client.list_samplers())
|
219 |
with gr.Column(scale=1):
|
|
|
222 |
width = gr.Slider(label="Ширина", minimum=15, maximum=1024, value=512, step=8)
|
223 |
height = gr.Slider(label="Длина", minimum=15, maximum=1024, value=512, step=8)
|
224 |
|
|
|
|
|
|
|
|
|
225 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
|
226 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=10000000, value=-1)
|
227 |
|