Update app.py
Browse files10 unmodified lines11121314151617120 unmodified lines13813914014114214314410 unmodified linesimport PyPDF2import docximport chardetimport json# Initialize the Dash appapp = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])120 unmodified linesraise PreventUpdatebutton_id = ctx.triggered[0]['prop_id'].split('.')[0]removed_file = json.loads(button_id)['index']if removed_file in uploaded_files:del uploaded_files[removed_file]10 unmodified lines111213141516120 unmodified lines13713813914014114214310 unmodified linesimport PyPDF2import docximport chardet# Initialize the Dash appapp = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])120 unmodified linesraise PreventUpdatebutton_id = ctx.triggered[0]['prop_id'].split('.')[0]removed_file = button_id.split('"index":"')[1].split('"')[0]if removed_file in uploaded_files:del uploaded_files[removed_file]
app.py+1-2