ali121300 commited on
Commit
06f0aa1
1 Parent(s): 2f4113e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -14
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
- if st.button("Build Model"):
54
- with st.spinner("Waiting"):
55
- document=get_pdf_load()
56
- st.write("load pdf")
57
- texts=get_text_split(document)
58
- st.write("text split")
59
- db=get_vectorstore(texts)
60
- st.write("vectore store")
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