Muhammad Qasim commited on
Commit
047284f
·
1 Parent(s): c982ee6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -95,11 +95,16 @@ def main():
95
  st.error("Please upload at least one PDF file.")
96
  else:
97
  with st.spinner("Processing"):
 
98
  raw_text = get_pdf_text(pdf_docs)
 
99
  text_chunks = get_text_chunks(raw_text)
 
100
  vectorstore = get_vectorstore(text_chunks)
 
101
  st.session_state.conversation = get_conversation_chain(
102
  vectorstore)
 
103
  st.success("Your Data has been processed successfully")
104
 
105
  if user_question:
 
95
  st.error("Please upload at least one PDF file.")
96
  else:
97
  with st.spinner("Processing"):
98
+ print("get_pdf_text")
99
  raw_text = get_pdf_text(pdf_docs)
100
+ print("get_text_chunks")
101
  text_chunks = get_text_chunks(raw_text)
102
+ print("get_vectorstore")
103
  vectorstore = get_vectorstore(text_chunks)
104
+ print("get_conversation_chain")
105
  st.session_state.conversation = get_conversation_chain(
106
  vectorstore)
107
+ print("success")
108
  st.success("Your Data has been processed successfully")
109
 
110
  if user_question: