mirix commited on
Commit
982b730
·
verified ·
1 Parent(s): cae1c1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -299,6 +299,8 @@ def serve_layout():
299
 
300
  return layout
301
 
 
 
302
  @callback(Output('figure-tooltip', 'show'),
303
  Output('figure-tooltip', 'bbox'),
304
  Output('figure-tooltip', 'children'),
@@ -321,24 +323,20 @@ def display_hover(hoverData):
321
 
322
  return True, bbox, children
323
 
324
- @callback(Output('layout-content', 'style'),
325
  Input('base-figure', 'figure'))
326
  def output_layout(fig):
327
  fig = plot_fig()
328
- layout = serve_layout
329
  return layout
330
 
331
- app.layout = output_layout
332
-
333
- @callback(Output('layout-content', 'style'),
334
  Input('interval-component', 'n_intervals'),
335
  Input('base-figure', 'figure'))
336
  def refresh_layout(n, fig):
337
  fig = plot_fig()
338
- layout = serve_layout
339
  return layout
340
-
341
- app.layout = refresh_layout
342
 
343
  if __name__ == '__main__':
344
  app.run(debug=False, host='0.0.0.0', port=7860)
 
299
 
300
  return layout
301
 
302
+ app.layout = serve_layout
303
+
304
  @callback(Output('figure-tooltip', 'show'),
305
  Output('figure-tooltip', 'bbox'),
306
  Output('figure-tooltip', 'children'),
 
323
 
324
  return True, bbox, children
325
 
326
+ @callback(Output('layout-content', 'children'),
327
  Input('base-figure', 'figure'))
328
  def output_layout(fig):
329
  fig = plot_fig()
330
+ layout = serve_layout()
331
  return layout
332
 
333
+ @callback(Output('layout-content', 'children'),
 
 
334
  Input('interval-component', 'n_intervals'),
335
  Input('base-figure', 'figure'))
336
  def refresh_layout(n, fig):
337
  fig = plot_fig()
338
+ layout = serve_layout()
339
  return layout
 
 
340
 
341
  if __name__ == '__main__':
342
  app.run(debug=False, host='0.0.0.0', port=7860)