frascuchon HF staff commited on
Commit
7c1b028
1 Parent(s): 9593b55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -169,12 +169,13 @@ with gr.Blocks() as demo:
169
  update_dashboard,
170
  inputs=None,
171
  outputs=[gauge_output, treemap_output, leaderboard_output],
 
172
  )
173
- gr.Button("Refresh").click(
174
- update_dashboard,
175
- inputs=None,
176
- outputs=[gauge_output, treemap_output, leaderboard_output],
177
- )
178
 
179
  if __name__ == "__main__":
180
  demo.launch()
 
169
  update_dashboard,
170
  inputs=None,
171
  outputs=[gauge_output, treemap_output, leaderboard_output],
172
+ every=5,
173
  )
174
+ #gr.Button("Refresh").click(
175
+ # update_dashboard,
176
+ # inputs=None,
177
+ # outputs=[gauge_output, treemap_output, leaderboard_output],
178
+ #)
179
 
180
  if __name__ == "__main__":
181
  demo.launch()