Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -275,6 +275,15 @@ def update_document_type(*args):
|
|
275 |
State('specific-document-name', 'children'),
|
276 |
prevent_initial_call=True
|
277 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
def generate_document_preview(n_clicks, document_source, specific_document):
|
279 |
global current_document, document_type, shredded_document, generated_documents
|
280 |
|
|
|
275 |
State('specific-document-name', 'children'),
|
276 |
prevent_initial_call=True
|
277 |
)
|
278 |
+
@app.callback(
|
279 |
+
Output('document-preview', 'children', allow_duplicate=True),
|
280 |
+
Output('loading-output', 'children', allow_duplicate=True),
|
281 |
+
Output('status-bar', 'children', allow_duplicate=True),
|
282 |
+
Input('btn-generate-document', 'n_clicks'),
|
283 |
+
State('document-source', 'value'),
|
284 |
+
State('specific-document-name', 'children'),
|
285 |
+
prevent_initial_call=True
|
286 |
+
)
|
287 |
def generate_document_preview(n_clicks, document_source, specific_document):
|
288 |
global current_document, document_type, shredded_document, generated_documents
|
289 |
|