Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ vectorstore = get_vectorstore(docs)
|
|
66 |
|
67 |
|
68 |
|
69 |
-
def main():
|
70 |
|
71 |
st.set_page_config(page_title="Chat with multiple PDFs",
|
72 |
page_icon=":books:")
|
@@ -80,7 +80,7 @@ def main():
|
|
80 |
st.header("Chat with multiple PDFs :books:")
|
81 |
user_question = st.text_input("Ask a question about your documents:")
|
82 |
if user_question:
|
83 |
-
handle_userinput(user_question)
|
84 |
|
85 |
|
86 |
def handle_userinput(user_question,vectorstore):
|
@@ -168,4 +168,4 @@ def create_conversational_rag_chain(vectorstore):
|
|
168 |
|
169 |
|
170 |
if __name__ == "__main__":
|
171 |
-
main()
|
|
|
66 |
|
67 |
|
68 |
|
69 |
+
def main(vectorstore):
|
70 |
|
71 |
st.set_page_config(page_title="Chat with multiple PDFs",
|
72 |
page_icon=":books:")
|
|
|
80 |
st.header("Chat with multiple PDFs :books:")
|
81 |
user_question = st.text_input("Ask a question about your documents:")
|
82 |
if user_question:
|
83 |
+
handle_userinput(user_question,vectorstore)
|
84 |
|
85 |
|
86 |
def handle_userinput(user_question,vectorstore):
|
|
|
168 |
|
169 |
|
170 |
if __name__ == "__main__":
|
171 |
+
main(vectorstore)
|