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