liruiw commited on
Commit
7d4df8f
·
1 Parent(s): 5ed752c
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 state: handle_input("up", state), inputs=[genie], outputs=image_display, show_progress='hidden')
119
- down.click(fn=lambda state: handle_input("down", state), inputs=[genie], outputs=image_display, show_progress='hidden')
120
- left.click(fn=lambda state: handle_input("left", state), inputs=[genie], outputs=image_display, show_progress='hidden')
121
- right.click(fn=lambda state: handle_input("right", state), 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=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)