Fix debug message for file-upload in UI (#1018)

This commit is contained in:
Bhadresh Savani 2021-05-03 12:48:55 +05:30 committed by GitHub
parent 5b0b3e4616
commit ca63f9fee2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,10 +52,10 @@ data_file = st.sidebar.file_uploader("", type=["pdf", "txt", "docx"])
# Upload file
if data_file:
raw_json = upload_doc(data_file)
st.write(raw_json)
st.sidebar.write(raw_json)
if debug:
st.subheader("REST API JSON response")
st.write(raw_json)
st.sidebar.write(raw_json)
# load csv into pandas dataframe
if eval_mode: