Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,22 +50,16 @@ def main():
|
|
50 |
|
51 |
st.header("Chat Bot PDFs :books:")
|
52 |
user_question = st.text_input("Ask a question about your documents:")
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
qa_chain=get_chain(db)
|
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 |
|
71 |
|
|
|
50 |
|
51 |
st.header("Chat Bot PDFs :books:")
|
52 |
user_question = st.text_input("Ask a question about your documents:")
|
53 |
+
document=get_pdf_load()
|
54 |
+
st.write("load pdf")
|
55 |
+
texts=get_text_split(document)
|
56 |
+
st.write("text split")
|
57 |
+
db=get_vectorstore(texts)
|
58 |
+
st.write("vectore store")
|
59 |
+
qa_chain=get_chain(db)
|
60 |
+
st.write("compelete build model")
|
|
|
|
|
61 |
if st.button("Answer"):
|
62 |
with st.spinner("Answering"):
|
|
|
|
|
|
|
|
|
63 |
get_conversation(query_user=user_question,qa_chain=qa_chain)
|
64 |
|
65 |
|