Spaces:
Paused
Paused
Update app.py via AI Editor
Browse files
app.py
CHANGED
|
@@ -257,11 +257,11 @@ app.layout = dbc.Container([
|
|
| 257 |
dbc.Textarea(id="chat-input", placeholder="Enter additional instructions...", style={"width":"100%", "wordWrap": "break-word"}, className="mb-2"),
|
| 258 |
]),
|
| 259 |
html.Div([
|
| 260 |
-
dbc.Button("Shred", id="shred-action-btn", className="me-
|
| 261 |
-
dbc.Button("Proposal", id="generate-action-btn", className="me-
|
| 262 |
-
dbc.Button("Compliance", id="compliance-action-btn", className="me-
|
| 263 |
-
dbc.Button("Recover", id="recover-action-btn", className="me-
|
| 264 |
-
dbc.Button("Virtual Board", id="board-action-btn", className="me-
|
| 265 |
dbc.Button("LOE", id="loe-action-btn", className="mb-2 btn-tertiary"),
|
| 266 |
], className="mt-3 mb-3 d-flex flex-wrap"),
|
| 267 |
dcc.Loading(
|
|
@@ -280,10 +280,8 @@ app.layout = dbc.Container([
|
|
| 280 |
Output('uploaded-doc-list', 'children'),
|
| 281 |
Output('select-document-dropdown', 'options'),
|
| 282 |
Output('select-document-dropdown', 'value'),
|
| 283 |
-
Output('output-document-upload', 'children'),
|
| 284 |
Output('select-proposal-dropdown', 'options'),
|
| 285 |
Output('select-proposal-dropdown', 'value'),
|
| 286 |
-
Output('output-proposal-upload', 'children'),
|
| 287 |
Output('uploaded-proposal-list', 'children'),
|
| 288 |
Input('upload-document', 'contents'),
|
| 289 |
State('upload-document', 'filename'),
|
|
@@ -302,9 +300,6 @@ def update_uploaded_docs(
|
|
| 302 |
ctx = callback_context
|
| 303 |
triggered = ctx.triggered
|
| 304 |
|
| 305 |
-
output_document_upload = None
|
| 306 |
-
output_proposal_upload = None
|
| 307 |
-
|
| 308 |
if rfp_content is not None and rfp_filename:
|
| 309 |
content_type, content_string = rfp_content.split(',')
|
| 310 |
decoded = base64.b64decode(content_string)
|
|
@@ -356,10 +351,8 @@ def update_uploaded_docs(
|
|
| 356 |
get_uploaded_doc_list(uploaded_documents),
|
| 357 |
doc_options,
|
| 358 |
doc_value,
|
| 359 |
-
output_document_upload,
|
| 360 |
proposal_options,
|
| 361 |
proposal_value,
|
| 362 |
-
output_proposal_upload,
|
| 363 |
get_uploaded_proposal_list(uploaded_proposals)
|
| 364 |
)
|
| 365 |
|
|
|
|
| 257 |
dbc.Textarea(id="chat-input", placeholder="Enter additional instructions...", style={"width":"100%", "wordWrap": "break-word"}, className="mb-2"),
|
| 258 |
]),
|
| 259 |
html.Div([
|
| 260 |
+
dbc.Button("Shred", id="shred-action-btn", className="me-3 mb-2 btn-primary"),
|
| 261 |
+
dbc.Button("Proposal", id="generate-action-btn", className="me-3 mb-2 btn-secondary"),
|
| 262 |
+
dbc.Button("Compliance", id="compliance-action-btn", className="me-3 mb-2 btn-tertiary"),
|
| 263 |
+
dbc.Button("Recover", id="recover-action-btn", className="me-3 mb-2 btn-tertiary"),
|
| 264 |
+
dbc.Button("Virtual Board", id="board-action-btn", className="me-3 mb-2 btn-tertiary"),
|
| 265 |
dbc.Button("LOE", id="loe-action-btn", className="mb-2 btn-tertiary"),
|
| 266 |
], className="mt-3 mb-3 d-flex flex-wrap"),
|
| 267 |
dcc.Loading(
|
|
|
|
| 280 |
Output('uploaded-doc-list', 'children'),
|
| 281 |
Output('select-document-dropdown', 'options'),
|
| 282 |
Output('select-document-dropdown', 'value'),
|
|
|
|
| 283 |
Output('select-proposal-dropdown', 'options'),
|
| 284 |
Output('select-proposal-dropdown', 'value'),
|
|
|
|
| 285 |
Output('uploaded-proposal-list', 'children'),
|
| 286 |
Input('upload-document', 'contents'),
|
| 287 |
State('upload-document', 'filename'),
|
|
|
|
| 300 |
ctx = callback_context
|
| 301 |
triggered = ctx.triggered
|
| 302 |
|
|
|
|
|
|
|
|
|
|
| 303 |
if rfp_content is not None and rfp_filename:
|
| 304 |
content_type, content_string = rfp_content.split(',')
|
| 305 |
decoded = base64.b64decode(content_string)
|
|
|
|
| 351 |
get_uploaded_doc_list(uploaded_documents),
|
| 352 |
doc_options,
|
| 353 |
doc_value,
|
|
|
|
| 354 |
proposal_options,
|
| 355 |
proposal_value,
|
|
|
|
| 356 |
get_uploaded_proposal_list(uploaded_proposals)
|
| 357 |
)
|
| 358 |
|