Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|