Lifeinhockey commited on
Commit
5ecd99a
·
verified ·
1 Parent(s): d85e2cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -396,7 +396,7 @@ with gr.Blocks(css=css) as demo:
396
  outputs=control_net_options
397
  )
398
 
399
- # IP_adapter ---------------------------------------------------------------------------------
400
  with gr.Blocks():
401
  with gr.Row():
402
  use_ip_adapter = gr.Checkbox(
@@ -421,9 +421,20 @@ with gr.Blocks(css=css) as demo:
421
  step=0.05,
422
  )
423
 
 
 
 
 
 
 
 
 
 
 
 
424
  ip_source_image = gr.Image(label="Upload Source Image")
425
 
426
- ip_adapter_image = gr.Image(label="Upload IP_adapter Image")
427
 
428
  use_ip_adapter.change(
429
  fn=lambda x: gr.Row.update(visible=x),
 
396
  outputs=control_net_options
397
  )
398
 
399
+ # IP_Adapter ---------------------------------------------------------------------------------
400
  with gr.Blocks():
401
  with gr.Row():
402
  use_ip_adapter = gr.Checkbox(
 
421
  step=0.05,
422
  )
423
 
424
+ ip_adapter_mode = gr.Dropdown(
425
+ label="Ip_Adapter Mode",
426
+ choices=[
427
+ "pose_estimation",
428
+ "edge_detection",
429
+ "scribble",
430
+ ],
431
+ value="pose_estimation",
432
+ interactive=True,
433
+ )
434
+
435
  ip_source_image = gr.Image(label="Upload Source Image")
436
 
437
+ ip_adapter_image = gr.Image(label="Upload IP_Adapter Image")
438
 
439
  use_ip_adapter.change(
440
  fn=lambda x: gr.Row.update(visible=x),