gensym commited on
Commit
65146bb
·
1 Parent(s): 693b8bf
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -216,16 +216,16 @@ with gr.Blocks() as demo:
216
  # examples_per_page=64,
217
  # )
218
 
219
- # # Handlers
220
- # image_prompt.upload(
221
- # preprocess_image,
222
- # inputs=[image_prompt],
223
- # outputs=[trial_id, image_prompt],
224
- # )
225
- # image_prompt.clear(
226
- # lambda: '',
227
- # outputs=[trial_id],
228
- # )
229
 
230
  # generate_btn.click(
231
  # image_to_3d,
 
216
  # examples_per_page=64,
217
  # )
218
 
219
+ # Handlers
220
+ image_prompt.upload(
221
+ preprocess_image,
222
+ inputs=[image_prompt],
223
+ outputs=[trial_id, image_prompt],
224
+ )
225
+ image_prompt.clear(
226
+ lambda: '',
227
+ outputs=[trial_id],
228
+ )
229
 
230
  # generate_btn.click(
231
  # image_to_3d,