Update app.py
Browse files
app.py
CHANGED
@@ -213,16 +213,14 @@ with gr.Blocks(css=css) as demo:
|
|
213 |
|
214 |
with gr.Tabs() as tabs:
|
215 |
with gr.Tab("txt2img", id='t2i'):
|
216 |
-
with gr.Row():
|
217 |
-
with gr.Column(scale=6, min_width=600):
|
218 |
-
prompt = gr.Textbox("", placeholder="Prompt", show_label=False, lines=3)
|
219 |
-
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")
|
220 |
-
with gr.Column():
|
221 |
-
text_button = gr.Button("Создать", variant='primary', elem_id="generate")
|
222 |
|
223 |
with gr.Row():
|
224 |
with gr.Column(scale=3):
|
225 |
with gr.Tab("Основные настройки"):
|
|
|
|
|
|
|
|
|
226 |
with gr.Row():
|
227 |
with gr.Column(scale=1):
|
228 |
steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=30, value=25, step=1)
|
@@ -244,7 +242,8 @@ with gr.Blocks(css=css) as demo:
|
|
244 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
|
245 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=10000000, value=-1)
|
246 |
|
247 |
-
|
|
|
248 |
with gr.Column(scale=2):
|
249 |
image_output = gr.Image()
|
250 |
|
@@ -254,11 +253,11 @@ with gr.Blocks(css=css) as demo:
|
|
254 |
with gr.Row():
|
255 |
with gr.Column(scale=3):
|
256 |
with gr.Tab("Основные настройки"):
|
|
|
257 |
with gr.Column(scale=6, min_width=600):
|
258 |
i2i_prompt = gr.Textbox("", placeholder="Prompt", show_label=False, lines=3)
|
259 |
i2i_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")
|
260 |
-
|
261 |
-
|
262 |
with gr.Row():
|
263 |
|
264 |
with gr.Column(scale=1):
|
|
|
213 |
|
214 |
with gr.Tabs() as tabs:
|
215 |
with gr.Tab("txt2img", id='t2i'):
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
|
217 |
with gr.Row():
|
218 |
with gr.Column(scale=3):
|
219 |
with gr.Tab("Основные настройки"):
|
220 |
+
with gr.Column(scale=6, min_width=600):
|
221 |
+
prompt = gr.Textbox("", placeholder="Prompt", show_label=False, lines=3)
|
222 |
+
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")
|
223 |
+
|
224 |
with gr.Row():
|
225 |
with gr.Column(scale=1):
|
226 |
steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=30, value=25, step=1)
|
|
|
242 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
|
243 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=10000000, value=-1)
|
244 |
|
245 |
+
with gr.Column():
|
246 |
+
text_button = gr.Button("Создать", variant='primary', elem_id="generate")
|
247 |
with gr.Column(scale=2):
|
248 |
image_output = gr.Image()
|
249 |
|
|
|
253 |
with gr.Row():
|
254 |
with gr.Column(scale=3):
|
255 |
with gr.Tab("Основные настройки"):
|
256 |
+
i2i_image_input = gr.Image(type="pil")
|
257 |
with gr.Column(scale=6, min_width=600):
|
258 |
i2i_prompt = gr.Textbox("", placeholder="Prompt", show_label=False, lines=3)
|
259 |
i2i_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")
|
260 |
+
|
|
|
261 |
with gr.Row():
|
262 |
|
263 |
with gr.Column(scale=1):
|