alexnasa commited on
Commit
1b5e124
·
verified ·
1 Parent(s): 7fa61ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -7
app.py CHANGED
@@ -265,12 +265,8 @@ with block:
265
  with gr.Row():
266
  with gr.Column():
267
  input_image = gr.Image(type="pil")
268
- num_particles = gr.Slider(label="Num of Partickes", minimum=1, maximum=16, step=1, value=10)
269
- bandwidth = gr.Slider(label="Bandwidth", minimum=0.1, maximum=0.8, step=0.1, value=0.1)
270
- patch_size = gr.Slider(label="Patch Size", minimum=1, maximum=16, step=1, value=16)
271
- use_KDS = gr.Checkbox(label="Use Kernel Density Steering")
272
  run_button = gr.Button("Run")
273
- with gr.Accordion("Options", open=True):
274
  user_prompt = gr.Textbox(label="User Prompt", value="")
275
  positive_prompt = gr.Textbox(label="Positive Prompt", value="clean, high-resolution, 8k, best quality, masterpiece")
276
  negative_prompt = gr.Textbox(
@@ -292,7 +288,7 @@ with block:
292
  examples = gr.Examples(
293
  examples=[
294
  [
295
- "preset/datasets/test_datasets/man.png",
296
  "",
297
  "clean, high-resolution, 8k, best quality, masterpiece",
298
  "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
@@ -303,7 +299,20 @@ with block:
303
  320,
304
  4,
305
  1,
306
- ],
 
 
 
 
 
 
 
 
 
 
 
 
 
307
  ],
308
  inputs=[
309
  input_image,
 
265
  with gr.Row():
266
  with gr.Column():
267
  input_image = gr.Image(type="pil")
 
 
 
 
268
  run_button = gr.Button("Run")
269
+ with gr.Accordion("Options", visisble=False):
270
  user_prompt = gr.Textbox(label="User Prompt", value="")
271
  positive_prompt = gr.Textbox(label="Positive Prompt", value="clean, high-resolution, 8k, best quality, masterpiece")
272
  negative_prompt = gr.Textbox(
 
288
  examples = gr.Examples(
289
  examples=[
290
  [
291
+ "preset/datasets/test_datasets/179.png",
292
  "",
293
  "clean, high-resolution, 8k, best quality, masterpiece",
294
  "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
 
299
  320,
300
  4,
301
  1,
302
+ ],
303
+ [
304
+ "preset/datasets/test_datasets/apologise.png",
305
+ "",
306
+ "clean, high-resolution, 8k, best quality, masterpiece",
307
+ "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
308
+ 50,
309
+ 4,
310
+ 7.5,
311
+ 123,
312
+ 320,
313
+ 4,
314
+ 1,
315
+ ],
316
  ],
317
  inputs=[
318
  input_image,