liruiw commited on
Commit
a100e67
·
1 Parent(s): 48f3c10
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -114,10 +114,8 @@ if __name__ == '__main__':
114
  select_button.click(
115
  fn=handle_image_selection, inputs=[image_selector, genie], outputs=image_display, show_progress='hidden'
116
  )
117
-
118
- up.click(fn=handle_input, inputs=["up", genie], outputs=image_display, show_progress='hidden')
119
- down.click(fn=handle_input, inputs=["down", genie], outputs=image_display, show_progress='hidden')
120
- left.click(fn=handle_input, inputs=["left", genie], outputs=image_display, show_progress='hidden')
121
- right.click(fn=handle_input, inputs=["right", genie], outputs=image_display, show_progress='hidden')
122
-
123
  demo.launch(share=True)
 
114
  select_button.click(
115
  fn=handle_image_selection, inputs=[image_selector, genie], outputs=image_display, show_progress='hidden'
116
  )
117
+ up.click(fn=lambda: handle_input("up"), outputs=image_display, show_progress='hidden')
118
+ down.click(fn=lambda: handle_input("down"), outputs=image_display, show_progress='hidden')
119
+ left.click(fn=lambda: handle_input("left"), outputs=image_display, show_progress='hidden')
120
+ right.click(fn=lambda: handle_input("right"), outputs=image_display, show_progress='hidden')
 
 
121
  demo.launch(share=True)