Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,6 @@ from dash.exceptions import PreventUpdate
|
|
11 |
import PyPDF2
|
12 |
import docx
|
13 |
import chardet
|
14 |
-
import json
|
15 |
|
16 |
# Initialize the Dash app
|
17 |
app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
|
@@ -138,7 +137,7 @@ def remove_file(n_clicks, existing_files):
|
|
138 |
raise PreventUpdate
|
139 |
|
140 |
button_id = ctx.triggered[0]['prop_id'].split('.')[0]
|
141 |
-
removed_file =
|
142 |
|
143 |
if removed_file in uploaded_files:
|
144 |
del uploaded_files[removed_file]
|
|
|
11 |
import PyPDF2
|
12 |
import docx
|
13 |
import chardet
|
|
|
14 |
|
15 |
# Initialize the Dash app
|
16 |
app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
|
|
|
137 |
raise PreventUpdate
|
138 |
|
139 |
button_id = ctx.triggered[0]['prop_id'].split('.')[0]
|
140 |
+
removed_file = button_id.split('"index":"')[1].split('"')[0]
|
141 |
|
142 |
if removed_file in uploaded_files:
|
143 |
del uploaded_files[removed_file]
|