diff --git a/ui/requirements.txt b/ui/requirements.txt index 7563be733..14d9d9fa3 100644 --- a/ui/requirements.txt +++ b/ui/requirements.txt @@ -1,2 +1,2 @@ -streamlit==0.84.0 +streamlit>=0.84.0 st-annotated-text==1.1.0 diff --git a/ui/webapp.py b/ui/webapp.py index c630f9c82..e5a4a299c 100644 --- a/ui/webapp.py +++ b/ui/webapp.py @@ -65,14 +65,15 @@ eval_mode = st.sidebar.checkbox("Evaluation mode") debug = st.sidebar.checkbox("Show debug info") st.sidebar.write("## File Upload:") -data_file = st.sidebar.file_uploader("", type=["pdf", "txt", "docx"]) -# Upload file -if data_file: - raw_json = upload_doc(data_file) - st.sidebar.write(raw_json) - if debug: - st.subheader("REST API JSON response") +data_files = st.sidebar.file_uploader("", type=["pdf", "txt", "docx"], accept_multiple_files=True) +for data_file in data_files: + # Upload file + if data_file: + raw_json = upload_doc(data_file) st.sidebar.write(raw_json) + if debug: + st.subheader("REST API JSON response") + st.sidebar.write(raw_json) # load csv into pandas dataframe if eval_mode: