Aluren commited on
Commit
593a050
·
verified ·
1 Parent(s): 7eb772f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -153,8 +153,8 @@ with gr.Blocks() as demo:
153
  with gr.Row():
154
  with gr.Column():
155
  with gr.Row():
156
- image_prompts = ImagePrompter(label="Input Image", type="pil")
157
- # image_prompts = gr.Image(label="Example Image", type="pil")
158
  mesh = gr.Model3D(label="Input Coarse Model",camera_position=(90,90,3))
159
 
160
  with gr.Accordion("Generation Settings", open=False):
@@ -186,14 +186,14 @@ with gr.Blocks() as demo:
186
  model_output = LitModel3D(label="Generated GLB", exposure=1.0, height=500,camera_position=(90,90,3))
187
  download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
188
 
189
- # with gr.Row():
190
- # gr.Examples(
191
- # examples=EXAMPLES,
192
- # fn=run_refinement,
193
- # inputs=[image_prompts, mesh, seed, randomize_seed],
194
- # outputs=[model_output, download_glb, seed],
195
- # cache_examples=False,
196
- # )
197
 
198
  gen_button.click(
199
  run_refinement,
 
153
  with gr.Row():
154
  with gr.Column():
155
  with gr.Row():
156
+ # image_prompts = ImagePrompter(label="Input Image", type="pil")
157
+ image_prompts = gr.Image(label="Example Image", type="pil")
158
  mesh = gr.Model3D(label="Input Coarse Model",camera_position=(90,90,3))
159
 
160
  with gr.Accordion("Generation Settings", open=False):
 
186
  model_output = LitModel3D(label="Generated GLB", exposure=1.0, height=500,camera_position=(90,90,3))
187
  download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
188
 
189
+ with gr.Row():
190
+ gr.Examples(
191
+ examples=EXAMPLES,
192
+ fn=run_refinement,
193
+ inputs=[image_prompts, mesh, seed, randomize_seed],
194
+ outputs=[model_output, download_glb, seed],
195
+ cache_examples=False,
196
+ )
197
 
198
  gen_button.click(
199
  run_refinement,