hysts HF staff commited on
Commit
3a70a87
1 Parent(s): e1ec104
Files changed (1) hide show
  1. app.py +4 -13
app.py CHANGED
@@ -76,20 +76,11 @@ with gr.Blocks(css="style.css") as demo:
76
  api_name=False,
77
  )
78
 
79
- search_box.submit(
80
- fn=paper_list.render,
81
- inputs=[
82
- search_box,
83
- case_sensitive,
84
- filter_names,
85
  ],
86
- outputs=[
87
- number_of_papers,
88
- table,
89
- ],
90
- api_name=False,
91
- )
92
- search_button.click(
93
  fn=paper_list.render,
94
  inputs=[
95
  search_box,
 
76
  api_name=False,
77
  )
78
 
79
+ gr.on(
80
+ triggers=[
81
+ search_box.submit,
82
+ search_button.click,
 
 
83
  ],
 
 
 
 
 
 
 
84
  fn=paper_list.render,
85
  inputs=[
86
  search_box,