haotongl commited on
Commit
256e7ee
·
1 Parent(s): 0cc3d2e

inital version

Browse files
Files changed (1) hide show
  1. app.py +16 -9
app.py CHANGED
@@ -150,6 +150,13 @@ def main(share: bool):
150
  input_file = gr.File(type="filepath", label="Stray scanner app capture zip file")
151
  resolution = gr.Dropdown(choices=['756x1008', '1428x1904'], value='756x1008', label="Inference resolution")
152
  submit_btn = gr.Button("Submit")
 
 
 
 
 
 
 
153
 
154
  with gr.Row():
155
  with gr.Column():
@@ -170,15 +177,15 @@ def main(share: bool):
170
  output_ply,
171
  output_depth_map,
172
  ]
173
- gr.Examples(examples=[
174
- ["data/assets/example0_chair.zip", "756x1008"]
175
- ],
176
- fn=run,
177
- inputs=[input_file, resolution],
178
- outputs=outputs,
179
- label="Examples",
180
- cache_examples=True,
181
- )
182
  submit_btn.click(run,
183
  inputs=[input_file, resolution],
184
  outputs=outputs)
 
150
  input_file = gr.File(type="filepath", label="Stray scanner app capture zip file")
151
  resolution = gr.Dropdown(choices=['756x1008', '1428x1904'], value='756x1008', label="Inference resolution")
152
  submit_btn = gr.Button("Submit")
153
+
154
+ gr.Examples(examples=[
155
+ ["data/assets/example0_chair.zip", "756x1008"]
156
+ ],
157
+ inputs=[input_file, resolution],
158
+ label="Examples",
159
+ )
160
 
161
  with gr.Row():
162
  with gr.Column():
 
177
  output_ply,
178
  output_depth_map,
179
  ]
180
+ # gr.Examples(examples=[
181
+ # ["data/assets/example0_chair.zip", "756x1008"]
182
+ # ],
183
+ # fn=run,
184
+ # inputs=[input_file, resolution],
185
+ # outputs=outputs,
186
+ # label="Examples",
187
+ # cache_examples=True,
188
+ # )
189
  submit_btn.click(run,
190
  inputs=[input_file, resolution],
191
  outputs=outputs)