Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,6 +62,9 @@ def main():
|
|
62 |
st.write("compelete build model")
|
63 |
if st.button("Answer"):
|
64 |
with st.spinner("Answering"):
|
|
|
|
|
|
|
65 |
qa_chain=get_chain(db)
|
66 |
get_conversation(query_user=user_question,qa_chain=qa_chain)
|
67 |
|
|
|
62 |
st.write("compelete build model")
|
63 |
if st.button("Answer"):
|
64 |
with st.spinner("Answering"):
|
65 |
+
st.write("load pdf")
|
66 |
+
texts=get_text_split(document)
|
67 |
+
db=get_vectorstore(texts)
|
68 |
qa_chain=get_chain(db)
|
69 |
get_conversation(query_user=user_question,qa_chain=qa_chain)
|
70 |
|