datacipen commited on
Commit
dd6435f
·
verified ·
1 Parent(s): 3887927

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -15
app.py CHANGED
@@ -30,7 +30,6 @@ from dash.dependencies import Input, Output, State
30
  from dash import Dash, html, dcc, callback, callback_context, ctx, Output, Input, dash_table, State, no_update, _dash_renderer, clientside_callback
31
  from dash import html
32
 
33
- import dash_bootstrap_components as dbc
34
  import dash_bootstrap_components as dbc
35
  from dash.exceptions import PreventUpdate
36
  import dash_mantine_components as dmc
@@ -794,7 +793,7 @@ index_page = dmc.MantineProvider(
794
  ]
795
  )
796
  ]
797
- )],forceColorScheme="dark"
798
  )
799
 
800
  # Successful login
@@ -856,19 +855,19 @@ app.layout = dmc.MantineProvider(
856
  html.Div(id='user-status-div'),
857
  html.Div(id='page-content')
858
  ])])
859
- def layout(**kwargs):
860
- return dmc.MantineProvider(
861
- [
862
- html.Div([
863
- dcc.Location(id='url', refresh=False),
864
- dcc.Location(id='redirect', refresh=True),
865
- dcc.Store(id='login-status', storage_type='session'),
866
- dcc.Store(id="history-store", storage_type="session", data=[]),
867
- dcc.Store(id="model-params-store", storage_type="session", data={"model": "mistralai/Mistral-Small-3.1-24B-Instruct-2503","temperature": 0.7,"max_tokens": 1024,"top_p": 0.9}),
868
- html.Div(id='user-status-div'),
869
- html.Div(id='page-content')
870
- ]),
871
- ],forceColorScheme="dark", span=12, offset=0, c='white')
872
 
873
  app_page = dmc.MantineProvider(
874
  [
 
30
  from dash import Dash, html, dcc, callback, callback_context, ctx, Output, Input, dash_table, State, no_update, _dash_renderer, clientside_callback
31
  from dash import html
32
 
 
33
  import dash_bootstrap_components as dbc
34
  from dash.exceptions import PreventUpdate
35
  import dash_mantine_components as dmc
 
793
  ]
794
  )
795
  ]
796
+ )]
797
  )
798
 
799
  # Successful login
 
855
  html.Div(id='user-status-div'),
856
  html.Div(id='page-content')
857
  ])])
858
+ #def layout(**kwargs):
859
+ # return dmc.MantineProvider(
860
+ # [
861
+ # html.Div([
862
+ # dcc.Location(id='url', refresh=False),
863
+ # dcc.Location(id='redirect', refresh=True),
864
+ # dcc.Store(id='login-status', storage_type='session'),
865
+ # dcc.Store(id="history-store", storage_type="session", data=[]),
866
+ # dcc.Store(id="model-params-store", storage_type="session", data={"model": "mistralai/Mistral-Small-3.1-24B-Instruct-2503","temperature": 0.7,"max_tokens": 1024,"top_p": 0.9}),
867
+ # html.Div(id='user-status-div'),
868
+ # html.Div(id='page-content')
869
+ # ]),
870
+ # ],forceColorScheme="dark", span=12, offset=0, c='white')
871
 
872
  app_page = dmc.MantineProvider(
873
  [