Rooni commited on
Commit
59f4c33
·
1 Parent(s): d55aa26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -10
app.py CHANGED
@@ -210,10 +210,6 @@ with gr.Blocks(css=css) as demo:
210
  with gr.Row():
211
  with gr.Column(scale=6):
212
  model = gr.Dropdown(interactive=True,value="absolutereality_v181.safetensors [3d9d4d2b]", show_label=True, label="Stable Diffusion Checkpoint", choices=prodia_client.list_models())
213
-
214
- with gr.Column(scale=1):
215
- gr.Markdown(elem_id="powered-by-prodia", value="Создано с помощью [Prodia](https://prodia.com).<br>[AiHub](https://ai-hub.rf.gd/)")
216
-
217
 
218
  with gr.Tabs() as tabs:
219
  with gr.Tab("txt2img", id='t2i'):
@@ -226,11 +222,8 @@ with gr.Blocks(css=css) as demo:
226
 
227
  with gr.Row():
228
  with gr.Column(scale=3):
229
- with gr.Tab("Generation"):
230
  with gr.Row():
231
- with gr.Column(scale=1):
232
- sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method", choices=prodia_client.list_samplers())
233
-
234
  with gr.Column(scale=1):
235
  steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=30, value=25, step=1)
236
 
@@ -239,6 +232,11 @@ with gr.Blocks(css=css) as demo:
239
  width = gr.Slider(label="Ширина", maximum=1024, value=512, step=8)
240
  height = gr.Slider(label="Длина", maximum=1024, value=512, step=8)
241
 
 
 
 
 
 
242
  with gr.Column(scale=1):
243
  batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
244
  batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
@@ -277,7 +275,6 @@ with gr.Blocks(css=css) as demo:
277
 
278
 
279
  with gr.Tab("Расширенные настройки"):
280
- i2i_image_input = gr.Image(type="pil")
281
 
282
  with gr.Row():
283
  with gr.Column(scale=1):
@@ -291,7 +288,7 @@ with gr.Blocks(css=css) as demo:
291
 
292
  i2i_cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
293
  i2i_denoising = gr.Slider(label="Denoising Strength", minimum=0, maximum=1, value=0.7, step=0.1)
294
- i2i_seed = gr.Number(label="Seed", value=-1)
295
 
296
 
297
  with gr.Column(scale=2):
 
210
  with gr.Row():
211
  with gr.Column(scale=6):
212
  model = gr.Dropdown(interactive=True,value="absolutereality_v181.safetensors [3d9d4d2b]", show_label=True, label="Stable Diffusion Checkpoint", choices=prodia_client.list_models())
 
 
 
 
213
 
214
  with gr.Tabs() as tabs:
215
  with gr.Tab("txt2img", id='t2i'):
 
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)
229
 
 
232
  width = gr.Slider(label="Ширина", maximum=1024, value=512, step=8)
233
  height = gr.Slider(label="Длина", maximum=1024, value=512, step=8)
234
 
235
+ with gr.Tab("Расширенные настройки"):
236
+ with gr.Row():
237
+ with gr.Column(scale=1):
238
+ sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method", choices=prodia_client.list_samplers())
239
+
240
  with gr.Column(scale=1):
241
  batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
242
  batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
 
275
 
276
 
277
  with gr.Tab("Расширенные настройки"):
 
278
 
279
  with gr.Row():
280
  with gr.Column(scale=1):
 
288
 
289
  i2i_cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
290
  i2i_denoising = gr.Slider(label="Denoising Strength", minimum=0, maximum=1, value=0.7, step=0.1)
291
+ i2i_seed = gr.Slider(label="Seed", minimum=-1, maximum=10000000, value=-1)
292
 
293
 
294
  with gr.Column(scale=2):