Spaces:
Runtime error
Runtime error
Hannes Kath commited on
Commit ·
b6c8a5b
1
Parent(s): 279b4b4
Test
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ if __name__ == '__main__':
|
|
| 31 |
external_stylesheets=[dbc.themes.BOOTSTRAP])
|
| 32 |
|
| 33 |
dash_app.layout = html.Div([
|
| 34 |
-
html.H1(
|
| 35 |
dbc.Button('Authenticate me', id='button_authenticate'),
|
| 36 |
html.H2('START', id='text_test')
|
| 37 |
])
|
|
@@ -39,7 +39,6 @@ if __name__ == '__main__':
|
|
| 39 |
@callback(
|
| 40 |
Output('heading', 'children'),
|
| 41 |
Input('button_authenticate', 'n_clicks'),
|
| 42 |
-
prevent_initial_call=True
|
| 43 |
)
|
| 44 |
def rewrite_heading(n_clicks):
|
| 45 |
return f'Times Button clicked: {n_clicks}'
|
|
|
|
| 31 |
external_stylesheets=[dbc.themes.BOOTSTRAP])
|
| 32 |
|
| 33 |
dash_app.layout = html.Div([
|
| 34 |
+
html.H1(id='heading'),
|
| 35 |
dbc.Button('Authenticate me', id='button_authenticate'),
|
| 36 |
html.H2('START', id='text_test')
|
| 37 |
])
|
|
|
|
| 39 |
@callback(
|
| 40 |
Output('heading', 'children'),
|
| 41 |
Input('button_authenticate', 'n_clicks'),
|
|
|
|
| 42 |
)
|
| 43 |
def rewrite_heading(n_clicks):
|
| 44 |
return f'Times Button clicked: {n_clicks}'
|