salomonsky commited on
Commit
5dc4c94
·
verified ·
1 Parent(s): 355725a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -0
app.py CHANGED
@@ -250,7 +250,33 @@ with gr.Blocks(css=css) as demo:
250
 
251
  with gr.Column(scale=2):
252
  i2i_image_output = gr.Image(value="https://huggingface.co/spaces/salomonsky/fast/raw/main/image.jpg")
 
 
 
 
 
 
 
 
 
 
 
253
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt,
255
  model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height,
256
  i2i_seed], outputs=i2i_image_output, concurrency_limit=64)
 
250
 
251
  with gr.Column(scale=2):
252
  i2i_image_output = gr.Image(value="https://huggingface.co/spaces/salomonsky/fast/raw/main/image.jpg")
253
+
254
+
255
+ with gr.Row():
256
+ with gr.Column(scale=3):
257
+ with gr.Tab("Generation"):
258
+ with gr.Row():
259
+ with gr.Column(scale=1):
260
+ sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method", choices=prodia_client.list_samplers())
261
+
262
+ with gr.Column(scale=1):
263
+ steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=30, value=25, step=1)
264
 
265
+ with gr.Row():
266
+ with gr.Column(scale=1):
267
+ width = gr.Slider(label="Width", maximum=1024, value=512, step=8)
268
+ height = gr.Slider(label="Height", maximum=1024, value=512, step=8)
269
+
270
+ with gr.Column(scale=1):
271
+ batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
272
+ batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
273
+
274
+ cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
275
+ seed = gr.Number(label="Seed", value=-1)
276
+
277
+ with gr.Column(scale=2):
278
+ image_output = gr.Image(value="https://huggingface.co/spaces/salomonsky/fast/raw/main/image.jpg")
279
+
280
  i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt,
281
  model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height,
282
  i2i_seed], outputs=i2i_image_output, concurrency_limit=64)