Update appStore/doc_processing.py
Browse files
appStore/doc_processing.py
CHANGED
@@ -73,7 +73,8 @@ def app():
|
|
73 |
st.session_state['key0'] = df
|
74 |
# if os.path.splitext(file_name)[-1] == 'pdf':
|
75 |
st.session_state['pages'] = df.loc[len(df)-1,'page']
|
76 |
-
st.info(
|
|
|
77 |
|
78 |
|
79 |
else:
|
|
|
73 |
st.session_state['key0'] = df
|
74 |
# if os.path.splitext(file_name)[-1] == 'pdf':
|
75 |
st.session_state['pages'] = df.loc[len(df)-1,'page']
|
76 |
+
st.info('**{}** with ~{} pages is splitted into {} paragraphs/text chunks (page number is **True** only for pdf files)'\
|
77 |
+
.format(os.path.basename(file_name),st.session_state['pages'], len(df)), icon="ℹ️")
|
78 |
|
79 |
|
80 |
else:
|