abidlabs HF Staff commited on
Commit
ddb3b9f
·
verified ·
1 Parent(s): 330c7e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ with gr.Blocks() as demo:
15
  t = gr.Textbox(placeholder="Search for a term", show_label=False)
16
  df = gr.Dataframe(value=data)
17
 
18
- t.change(fn=filter_rows_by_term, inputs=[df_orig, t], outputs=[df])
19
 
20
  if __name__ == "__main__":
21
  demo.launch()
 
15
  t = gr.Textbox(placeholder="Search for a term", show_label=False)
16
  df = gr.Dataframe(value=data)
17
 
18
+ t.change(fn=filter_rows_by_term, inputs=[df_orig, t], outputs=[df], js=True)
19
 
20
  if __name__ == "__main__":
21
  demo.launch()