Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -286,10 +286,12 @@ def plot_fig():
|
|
286 |
app = Dash(__name__)
|
287 |
server = app.server
|
288 |
|
|
|
|
|
289 |
def serve_layout():
|
290 |
|
291 |
layout = html.Div([
|
292 |
-
html.Div([dcc.Graph(id='base-figure', clear_on_unhover=True, style={'height': '99vh'})], id='base-figure-div'),
|
293 |
dcc.Tooltip(id='figure-tooltip'),
|
294 |
dcc.Interval(
|
295 |
id='interval-component',
|
|
|
286 |
app = Dash(__name__)
|
287 |
server = app.server
|
288 |
|
289 |
+
fig = plot_fig()
|
290 |
+
|
291 |
def serve_layout():
|
292 |
|
293 |
layout = html.Div([
|
294 |
+
html.Div([dcc.Graph(id='base-figure', figure=fig, clear_on_unhover=True, style={'height': '99vh'})], id='base-figure-div'),
|
295 |
dcc.Tooltip(id='figure-tooltip'),
|
296 |
dcc.Interval(
|
297 |
id='interval-component',
|