Update app.py
Browse files
app.py
CHANGED
@@ -136,20 +136,20 @@ def main():
|
|
136 |
with st.spinner:
|
137 |
if pdf_docs:
|
138 |
# get pdf text
|
139 |
-
|
140 |
|
141 |
# get the text chunks
|
142 |
-
|
143 |
|
144 |
# create vector store
|
145 |
-
|
146 |
|
147 |
# create conversation chain
|
148 |
-
|
149 |
|
150 |
-
|
151 |
|
152 |
-
|
153 |
|
154 |
|
155 |
|
|
|
136 |
with st.spinner:
|
137 |
if pdf_docs:
|
138 |
# get pdf text
|
139 |
+
raw_text = get_pdf_text(pdf_docs)
|
140 |
|
141 |
# get the text chunks
|
142 |
+
text_chunks = get_text_chunks(raw_text)
|
143 |
|
144 |
# create vector store
|
145 |
+
vectorstore = get_vectorstore(text_chunks)
|
146 |
|
147 |
# create conversation chain
|
148 |
+
conversation = get_conversation_chain()
|
149 |
|
150 |
+
st.success("Files have been processed into a vector store.")
|
151 |
|
152 |
+
return vectorstore , conversation
|
153 |
|
154 |
|
155 |
|