Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1361,20 +1361,20 @@ def load_from_stats(n_clicks, array_value, theme):
|
|
1361 |
children_tabs.append(dmc.GridCol(html.Div(dcc.Loading(id="loadingPlot",children=[dbc.Label("Répartition des embauches du métier : type entreprise du code ROME : " + array_label_rome[0]['label']),dash_table.DataTable(data=df_repartitionEntreprise.to_dict('records'),sort_action='native', columns=[{'id': c, 'name': c} for c in df_repartitionEntreprise.columns],page_action='native', page_current= 0,page_size= 10,style_header=style_header,style_data=style_data,style_table={'overflowX': 'auto'},style_cell={'overflow': 'hidden','textOverflow': 'ellipsis','maxWidth': 0,})],type="default")), span=12),)
|
1362 |
return dmc.Grid(children=children), dmc.Grid(children=children_tabs), False
|
1363 |
|
1364 |
-
clientside_callback(
|
1365 |
-
"""
|
1366 |
-
function updateLoadingState(n_clicks) {
|
1367 |
-
return true
|
1368 |
-
}
|
1369 |
-
""",
|
1370 |
-
Output("loading-skills", "loading", allow_duplicate=True),
|
1371 |
-
Input("loading-skills", "n_clicks"),
|
1372 |
-
prevent_initial_call=True,
|
1373 |
-
)
|
1374 |
|
1375 |
@callback(
|
1376 |
Output("clicked-output-skills", "children"),
|
1377 |
-
Output("loading-skills", "loading"),
|
1378 |
Input("loading-skills", "n_clicks"),
|
1379 |
Input(component_id='framework-multi-select', component_property='value'),
|
1380 |
Input("mantine-provider", "forceColorScheme"),
|
@@ -1403,7 +1403,7 @@ def load_from_skills(n_clicks, array_value, theme):
|
|
1403 |
#children.append(dmc.GridCol(html.Div(dcc.Loading(id="loadingPlot",children=(dcc.Graph(figure=fig_Savoir)), type="default"), style=styleTitle), span=12),)
|
1404 |
#children.append(dmc.GridCol(html.Div(dcc.Loading(id="loadingPlot",children=(dcc.Graph(figure=fig_Context)), type="default"), style=styleTitle), span=12),)
|
1405 |
|
1406 |
-
return dmc.Grid(children=children)
|
1407 |
|
1408 |
|
1409 |
########### IA Chatbot ###########
|
|
|
1361 |
children_tabs.append(dmc.GridCol(html.Div(dcc.Loading(id="loadingPlot",children=[dbc.Label("Répartition des embauches du métier : type entreprise du code ROME : " + array_label_rome[0]['label']),dash_table.DataTable(data=df_repartitionEntreprise.to_dict('records'),sort_action='native', columns=[{'id': c, 'name': c} for c in df_repartitionEntreprise.columns],page_action='native', page_current= 0,page_size= 10,style_header=style_header,style_data=style_data,style_table={'overflowX': 'auto'},style_cell={'overflow': 'hidden','textOverflow': 'ellipsis','maxWidth': 0,})],type="default")), span=12),)
|
1362 |
return dmc.Grid(children=children), dmc.Grid(children=children_tabs), False
|
1363 |
|
1364 |
+
#clientside_callback(
|
1365 |
+
# """
|
1366 |
+
# function updateLoadingState(n_clicks) {
|
1367 |
+
# return true
|
1368 |
+
# }
|
1369 |
+
# """,
|
1370 |
+
# Output("loading-skills", "loading", allow_duplicate=True),
|
1371 |
+
# Input("loading-skills", "n_clicks"),
|
1372 |
+
# prevent_initial_call=True,
|
1373 |
+
#)
|
1374 |
|
1375 |
@callback(
|
1376 |
Output("clicked-output-skills", "children"),
|
1377 |
+
#Output("loading-skills", "loading"),
|
1378 |
Input("loading-skills", "n_clicks"),
|
1379 |
Input(component_id='framework-multi-select', component_property='value'),
|
1380 |
Input("mantine-provider", "forceColorScheme"),
|
|
|
1403 |
#children.append(dmc.GridCol(html.Div(dcc.Loading(id="loadingPlot",children=(dcc.Graph(figure=fig_Savoir)), type="default"), style=styleTitle), span=12),)
|
1404 |
#children.append(dmc.GridCol(html.Div(dcc.Loading(id="loadingPlot",children=(dcc.Graph(figure=fig_Context)), type="default"), style=styleTitle), span=12),)
|
1405 |
|
1406 |
+
return dmc.Grid(children=children)
|
1407 |
|
1408 |
|
1409 |
########### IA Chatbot ###########
|