Xu Ma commited on
Commit
0461f1c
·
1 Parent(s): 0abcaa2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -2
app.py CHANGED
@@ -106,8 +106,20 @@ description = "This demo shows the effectiveness of LIVE <a href='' target='_bla
106
  examples = [["examples/" + img] for img in os.listdir("examples/")]
107
 
108
  iface = gr.Interface(fn=process_image,
109
- inputs=[gr.inputs.Image(
110
- type="filepath", label="Input Image")],
 
 
 
 
 
 
 
 
 
 
 
 
111
  outputs=[gr.outputs.Image(label="predicted depth", type="pil"),
112
  gr.outputs.Image3D(label="3d mesh reconstruction", clear_color=[
113
  1.0, 1.0, 1.0, 1.0]),
 
106
  examples = [["examples/" + img] for img in os.listdir("examples/")]
107
 
108
  iface = gr.Interface(fn=process_image,
109
+ inputs=[gr.inputs.Image(type="filepath", label="Input Image"),
110
+ gr.inputs.Radio(
111
+ [
112
+ 'add 5 paths one by one',
113
+ 'add 8 paths one by one',
114
+ 'add [1,3,5,7] paths',
115
+ 'add [1,2,4,8,16,32,32,32...] total 128 paths',
116
+ 'add [1,2,4,8,16,32,32,32...] total 256 paths',
117
+ ],
118
+ type="value",
119
+ default='add 5 paths one by one',
120
+ label='experiment_id'
121
+ )
122
+ ],
123
  outputs=[gr.outputs.Image(label="predicted depth", type="pil"),
124
  gr.outputs.Image3D(label="3d mesh reconstruction", clear_color=[
125
  1.0, 1.0, 1.0, 1.0]),