Spaces:
Paused
Paused
Update app.py via AI Editor
Browse files
app.py
CHANGED
@@ -189,6 +189,19 @@ def file_list_component():
|
|
189 |
|
190 |
app.layout = dbc.Container([
|
191 |
dcc.Store(id='selected-doc-type', data="Shred"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
dbc.Row([
|
193 |
dbc.Col(
|
194 |
dbc.Card(
|
@@ -203,6 +216,13 @@ app.layout = dbc.Container([
|
|
203 |
])
|
204 |
], fluid=True)
|
205 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
@app.callback(
|
207 |
Output('doc-type-buttons', 'children'),
|
208 |
Input('selected-doc-type', 'data')
|
|
|
189 |
|
190 |
app.layout = dbc.Container([
|
191 |
dcc.Store(id='selected-doc-type', data="Shred"),
|
192 |
+
dbc.Row([
|
193 |
+
dbc.Col(
|
194 |
+
html.H2(id='main-title', className="mt-3 mb-2", style={'textAlign': 'center', 'width':'100%'}),
|
195 |
+
width=12
|
196 |
+
)
|
197 |
+
]),
|
198 |
+
dbc.Row([
|
199 |
+
dbc.Col(
|
200 |
+
html.Div([
|
201 |
+
html.Div(className="blinking-dot", style={'margin':'0 auto','width':'16px','height':'16px'}),
|
202 |
+
], style={'textAlign':'center', 'marginBottom':'10px'})
|
203 |
+
)
|
204 |
+
]),
|
205 |
dbc.Row([
|
206 |
dbc.Col(
|
207 |
dbc.Card(
|
|
|
216 |
])
|
217 |
], fluid=True)
|
218 |
|
219 |
+
@app.callback(
|
220 |
+
Output('main-title', 'children'),
|
221 |
+
Input('selected-doc-type', 'data')
|
222 |
+
)
|
223 |
+
def update_main_title(selected_type):
|
224 |
+
return selected_type
|
225 |
+
|
226 |
@app.callback(
|
227 |
Output('doc-type-buttons', 'children'),
|
228 |
Input('selected-doc-type', 'data')
|