OriLib commited on
Commit
419164d
1 Parent(s): ecaecb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -69,11 +69,12 @@ with block:
69
  num_steps = gr.Slider(label="Number of steps", minimum=25, maximum=100, value=50, step=1)
70
  controlnet_conditioning_scale = gr.Slider(label="ControlNet conditioning scale", minimum=0.1, maximum=2.0, value=1.0, step=0.05)
71
  seed = gr.Slider(label="Seed", minimum=0, maximum=2147483647, step=1, randomize=True,)
72
- run_button = gr.Button(value="Run")
73
 
74
 
75
  with gr.Column():
76
- result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", columns=[1], height=600)
 
77
  ips = [input_image, prompt, negative_prompt, num_steps, controlnet_conditioning_scale, seed]
78
  run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
79
 
 
69
  num_steps = gr.Slider(label="Number of steps", minimum=25, maximum=100, value=50, step=1)
70
  controlnet_conditioning_scale = gr.Slider(label="ControlNet conditioning scale", minimum=0.1, maximum=2.0, value=1.0, step=0.05)
71
  seed = gr.Slider(label="Seed", minimum=0, maximum=2147483647, step=1, randomize=True,)
72
+ run_button = gr.Button(value="Generate")
73
 
74
 
75
  with gr.Column():
76
+ result_gallery = gr.Image(label='Output', show_label=False, elem_id="gallery", columns=[1], height=600) # None for upload, ctrl+v and webcam
77
+ # result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", columns=[1], height=600)
78
  ips = [input_image, prompt, negative_prompt, num_steps, controlnet_conditioning_scale, seed]
79
  run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
80