Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,9 @@ def main():
|
|
102 |
user_input(user_question, api_key)
|
103 |
else:
|
104 |
st.write("Please upload PDF documents to proceed.")
|
105 |
-
|
|
|
|
|
106 |
# # Check if any document is uploaded
|
107 |
# if pdf_docs:
|
108 |
# user_question = st.text_input("Ask a question from the Docs")
|
|
|
102 |
user_input(user_question, api_key)
|
103 |
else:
|
104 |
st.write("Please upload PDF documents to proceed.")
|
105 |
+
|
106 |
+
if raw_text:
|
107 |
+
get_pdf_text(pdf_docs)
|
108 |
# # Check if any document is uploaded
|
109 |
# if pdf_docs:
|
110 |
# user_question = st.text_input("Ask a question from the Docs")
|