ashok2216 commited on
Commit
b3e0053
·
verified ·
1 Parent(s): f4c2b4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -119,6 +119,7 @@ def main():
119
  st.text_area("Extracted Text:", pdf_text, height=300)
120
  add_pdf_text_to_db(collection, pdf_text)
121
  st.success("PDF text has been added to the database. You can now query it!")
 
122
  if query:
123
  try:
124
  answer, metadata = query_pdf_data(collection, query, retriever_model)
 
119
  st.text_area("Extracted Text:", pdf_text, height=300)
120
  add_pdf_text_to_db(collection, pdf_text)
121
  st.success("PDF text has been added to the database. You can now query it!")
122
+ query = st.text_input("Enter your query about the PDF:")
123
  if query:
124
  try:
125
  answer, metadata = query_pdf_data(collection, query, retriever_model)