reply-konhein
commited on
Commit
·
f00fb66
1
Parent(s):
dc764cb
Change CV to documents
Browse files
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
app.py
CHANGED
@@ -38,7 +38,7 @@ def manage_files(modal, document_store):
|
|
38 |
if modal.is_open():
|
39 |
with modal.container():
|
40 |
uploaded_file = st.file_uploader(
|
41 |
-
"Upload a
|
42 |
type=("pdf",),
|
43 |
on_change=new_file(),
|
44 |
disabled=st.session_state['document_qa_model'] is None,
|
@@ -57,7 +57,7 @@ def manage_files(modal, document_store):
|
|
57 |
if uploaded_file:
|
58 |
st.session_state['file_uploaded'] = True
|
59 |
st.session_state['files'] = pd.concat([st.session_state['files'], edited_df])
|
60 |
-
with st.spinner('Processing the
|
61 |
store_file_in_table(document_store, uploaded_file)
|
62 |
ingest_document(uploaded_file)
|
63 |
|
@@ -103,7 +103,7 @@ def init_session_state():
|
|
103 |
|
104 |
def set_page_config():
|
105 |
st.set_page_config(
|
106 |
-
page_title="
|
107 |
page_icon=":shark:",
|
108 |
initial_sidebar_state="expanded",
|
109 |
layout="wide",
|
|
|
38 |
if modal.is_open():
|
39 |
with modal.container():
|
40 |
uploaded_file = st.file_uploader(
|
41 |
+
"Upload a document in PDF format",
|
42 |
type=("pdf",),
|
43 |
on_change=new_file(),
|
44 |
disabled=st.session_state['document_qa_model'] is None,
|
|
|
57 |
if uploaded_file:
|
58 |
st.session_state['file_uploaded'] = True
|
59 |
st.session_state['files'] = pd.concat([st.session_state['files'], edited_df])
|
60 |
+
with st.spinner('Processing the document content...'):
|
61 |
store_file_in_table(document_store, uploaded_file)
|
62 |
ingest_document(uploaded_file)
|
63 |
|
|
|
103 |
|
104 |
def set_page_config():
|
105 |
st.set_page_config(
|
106 |
+
page_title="AI Audit Assistant",
|
107 |
page_icon=":shark:",
|
108 |
initial_sidebar_state="expanded",
|
109 |
layout="wide",
|
utils.py
CHANGED
@@ -50,7 +50,7 @@ def append_documentation_to_sidebar():
|
|
50 |
with st.expander("Documentation"):
|
51 |
st.markdown(
|
52 |
"""
|
53 |
-
Upload
|
54 |
be displayed in the right column. The system will answer your questions using the content of the document
|
55 |
and mark refrences over the PDF viewer.
|
56 |
""")
|
|
|
50 |
with st.expander("Documentation"):
|
51 |
st.markdown(
|
52 |
"""
|
53 |
+
Upload document as PDF document. Once the spinner stops, you can proceed to ask your questions. The answers will
|
54 |
be displayed in the right column. The system will answer your questions using the content of the document
|
55 |
and mark refrences over the PDF viewer.
|
56 |
""")
|