laiviet commited on
Commit
96cdbc3
1 Parent(s): 1f4f8d3

Update for gradio >=4.0.0

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -147,13 +147,17 @@ with demo:
147
  value=original_df,
148
  headers=COLS,
149
  datatype=TYPES,
150
- max_rows=5,
151
  elem_id="leaderboard-table",
152
  )
153
 
154
  # # Dummy leaderboard for handling the case when the user uses backspace key
155
  hidden_leaderboard_table_for_search = gr.components.Dataframe(
156
- value=original_df, headers=COLS, datatype=TYPES, max_rows=5, visible=False
 
 
 
 
157
  )
158
 
159
  search_bar.change(
 
147
  value=original_df,
148
  headers=COLS,
149
  datatype=TYPES,
150
+ # max_rows=5,
151
  elem_id="leaderboard-table",
152
  )
153
 
154
  # # Dummy leaderboard for handling the case when the user uses backspace key
155
  hidden_leaderboard_table_for_search = gr.components.Dataframe(
156
+ value=original_df,
157
+ headers=COLS,
158
+ datatype=TYPES,
159
+ # max_rows=5,
160
+ visible=False
161
  )
162
 
163
  search_bar.change(