terrapretapermaculture commited on
Commit
329b8dd
β€’
1 Parent(s): c78a5a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -3
app.py CHANGED
@@ -35,7 +35,7 @@ with gr.Blocks(css="style.css") as demo:
35
  visible=SHOW_DUPLICATE_BUTTON,
36
  )
37
 
38
- with gr.TabbedInterface():
39
  #with gr.Tab("Canny"):
40
  # create_demo_canny(model.process_canny)
41
  #with gr.Tab("MLSD"):
@@ -50,8 +50,8 @@ with gr.Blocks(css="style.css") as demo:
50
  # create_demo_openpose(model.process_openpose)
51
  #with gr.Tab("Segmentation"):
52
  # create_demo_segmentation(model.process_segmentation)
53
- with gr.Tab("Depth"):
54
- create_demo_depth(model.process_depth)
55
  #with gr.Tab("Normal map"):
56
  # create_demo_normal(model.process_normal)
57
  #with gr.Tab("Lineart"):
@@ -61,6 +61,23 @@ with gr.Blocks(css="style.css") as demo:
61
  #with gr.Tab("Instruct Pix2Pix"):
62
  # create_demo_ip2p(model.process_ip2p)
63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  with gr.Accordion(label="Base model", open=False):
65
  with gr.Row():
66
  with gr.Column(scale=5):
 
35
  visible=SHOW_DUPLICATE_BUTTON,
36
  )
37
 
38
+ #with gr.TabbedInterface():
39
  #with gr.Tab("Canny"):
40
  # create_demo_canny(model.process_canny)
41
  #with gr.Tab("MLSD"):
 
50
  # create_demo_openpose(model.process_openpose)
51
  #with gr.Tab("Segmentation"):
52
  # create_demo_segmentation(model.process_segmentation)
53
+ #with gr.Tab("Depth"):
54
+ # create_demo_depth(model.process_depth)
55
  #with gr.Tab("Normal map"):
56
  # create_demo_normal(model.process_normal)
57
  #with gr.Tab("Lineart"):
 
61
  #with gr.Tab("Instruct Pix2Pix"):
62
  # create_demo_ip2p(model.process_ip2p)
63
 
64
+ interfaces = [
65
+ #gr.Interface(fn=model.process_canny, inputs=[], outputs=[], live=False, name="Canny"),
66
+ #gr.Interface(fn=model.process_mlsd, inputs=[], outputs=[], live=False, name="MLSD"),
67
+ #gr.Interface(fn=model.process_scribble, inputs=[], outputs=[], live=False, name="Scribble"),
68
+ # gr.Interface(fn=model.process_scribble_interactive, inputs=[], outputs=[], live=False, name="Scribble Interactive"),
69
+ #gr.Interface(fn=model.process_softedge, inputs=[], outputs=[], live=False, name="SoftEdge"),
70
+ #gr.Interface(fn=model.process_openpose, inputs=[], outputs=[], live=False, name="OpenPose"),
71
+ #gr.Interface(fn=model.process_segmentation, inputs=[], outputs=[], live=False, name="Segmentation"),
72
+ gr.Interface(fn=model.process_depth, inputs=[], outputs=[], live=False, name="Depth"),
73
+ #gr.Interface(fn=model.process_normal, inputs=[], outputs=[], live=False, name="Normal map"),
74
+ #gr.Interface(fn=model.process_lineart, inputs=[], outputs=[], live=False, name="Lineart"),
75
+ #gr.Interface(fn=model.process_shuffle, inputs=[], outputs=[], live=False, name="Content Shuffle"),
76
+ #gr.Interface(fn=model.process_ip2p, inputs=[], outputs=[], live=False, name="Instruct Pix2Pix")
77
+ ]
78
+
79
+ gr.TabbedInterface(interface_list=interfaces, theme="default")
80
+
81
  with gr.Accordion(label="Base model", open=False):
82
  with gr.Row():
83
  with gr.Column(scale=5):