hideosnes commited on
Commit
094fe55
1 Parent(s): dc5f20b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -18
app.py CHANGED
@@ -255,8 +255,14 @@ with block:
255
  with gr.Column():
256
  with gr.Row():
257
  with gr.Column():
258
- image_pil = gr.Image(label="Style Image", type="pil")
259
- processed_image = gr.Image(label="Preprocess uWu", interactive=False)
 
 
 
 
 
 
260
  with gr.Column():
261
  prompt = gr.Textbox(
262
  label="Prompt",
@@ -348,22 +354,22 @@ with block:
348
  ]
349
  outputs = [generated_image]
350
 
351
- gr.on(
352
- triggers=[
353
- prompt.input,
354
- generate_button.click,
355
- guidance_scale.input,
356
- scale.input,
357
- control_scale.input,
358
- seed.input,
359
- ],
360
- fn=create_image,
361
- inputs=inputs,
362
- outputs=outputs,
363
- show_progress="minimal",
364
- show_api=False,
365
- trigger_mode="always_last",
366
- )
367
 
368
  gr.Examples(
369
  examples=examples,
 
255
  with gr.Column():
256
  with gr.Row():
257
  with gr.Column():
258
+ with gr.Row():
259
+ with gr.Column():
260
+ image_pil = gr.Image(label="Style Image", type="pil")
261
+ )
262
+ with gr.Column():
263
+ processed_image = gr.Image(label="Preprocess uWu", interactive=False)
264
+ )
265
+ )
266
  with gr.Column():
267
  prompt = gr.Textbox(
268
  label="Prompt",
 
354
  ]
355
  outputs = [generated_image]
356
 
357
+ # gr.on(
358
+ # triggers=[
359
+ # prompt.input,
360
+ # generate_button.click,
361
+ # guidance_scale.input,
362
+ # scale.input,
363
+ # control_scale.input,
364
+ # seed.input,
365
+ # ],
366
+ # fn=create_image,
367
+ # inputs=inputs,
368
+ # outputs=outputs,
369
+ # show_progress="minimal",
370
+ # show_api=False,
371
+ # trigger_mode="always_last",
372
+ # )
373
 
374
  gr.Examples(
375
  examples=examples,