Augustindroid commited on
Commit
8375d92
Β·
verified Β·
1 Parent(s): a68a3e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -93,7 +93,7 @@ def generate(
93
  depth_image_strength=0.5,
94
  progress=gr.Progress(track_tqdm=True)
95
  ):
96
- resolution = 1024
97
 
98
  if base_image is not None:
99
  base_image = load_and_resize_image(base_image, resolution, resolution)
@@ -211,7 +211,7 @@ with gr.Blocks() as demo:
211
  number_of_images = gr.Slider(label="Number of Outputs",step=1, minimum=1, maximum=4, value=1)
212
  with gr.Row():
213
  guidance_scale = gr.Slider(label="Guidance Scale",step=0.1, minimum=0.0, maximum=14.0, value=3.0)
214
- number_of_steps = gr.Slider(label="Number of Steps",step=1, minimum=1, maximum=50, value=10)
215
 
216
  with gr.Column():
217
  with gr.Row():
@@ -239,12 +239,5 @@ with gr.Blocks() as demo:
239
  outputs=[out]
240
  )
241
  # clear.click(lambda: None, None, chatbot, queue=False)
242
- gr.Examples(
243
- examples=[["A person", "https://github.com/okaris/omni-zero/assets/1448702/2ca63443-c7f3-4ba6-95c1-2a341414865f", "https://github.com/okaris/omni-zero/assets/1448702/64dc150b-f683-41b1-be23-b6a52c771584", "https://github.com/okaris/omni-zero/assets/1448702/ba193a3a-f90e-4461-848a-560454531c58"]],
244
- inputs=[prompt, composition_image, style_image, identity_image],
245
- outputs=[out],
246
- fn=generate,
247
- cache_examples="lazy",
248
- )
249
  if __name__ == "__main__":
250
  demo.launch()
 
93
  depth_image_strength=0.5,
94
  progress=gr.Progress(track_tqdm=True)
95
  ):
96
+ resolution = 1280
97
 
98
  if base_image is not None:
99
  base_image = load_and_resize_image(base_image, resolution, resolution)
 
211
  number_of_images = gr.Slider(label="Number of Outputs",step=1, minimum=1, maximum=4, value=1)
212
  with gr.Row():
213
  guidance_scale = gr.Slider(label="Guidance Scale",step=0.1, minimum=0.0, maximum=14.0, value=3.0)
214
+ number_of_steps = gr.Slider(label="Number of Steps",step=1, minimum=1, maximum=50, value=25)
215
 
216
  with gr.Column():
217
  with gr.Row():
 
239
  outputs=[out]
240
  )
241
  # clear.click(lambda: None, None, chatbot, queue=False)
 
 
 
 
 
 
 
242
  if __name__ == "__main__":
243
  demo.launch()