Chandranshu Jain commited on
Commit
20f19cf
1 Parent(s): fabfbf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -105,8 +105,7 @@ with st.sidebar:
105
 
106
  query = st.chat_input("Ask a Question from the PDF File")
107
  if query:
108
- for file in os.listdir(pdf_docs):
109
- raw_text = get_pdf(file)
110
  text_chunks = text_splitter(raw_text)
111
  st.session_state.messages.append({'role': 'user', "content": query})
112
  response = embedding(text_chunks,query)
 
105
 
106
  query = st.chat_input("Ask a Question from the PDF File")
107
  if query:
108
+ raw_text = get_pdf(pdf_docs)
 
109
  text_chunks = text_splitter(raw_text)
110
  st.session_state.messages.append({'role': 'user', "content": query})
111
  response = embedding(text_chunks,query)