Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -94,10 +94,10 @@ def main():
|
|
94 |
|
95 |
if pdf_docs and st.success("Processing Complete"):
|
96 |
with col1:
|
97 |
-
raw_text = get_pdf_text(pdf_docs)
|
98 |
user_question = st.text_input("Ask a question from the Docs")
|
99 |
if user_question:
|
100 |
user_input(user_question, api_key)
|
|
|
101 |
else:
|
102 |
with col1:
|
103 |
st.write("Please upload a document first to ask questions.")
|
|
|
94 |
|
95 |
if pdf_docs and st.success("Processing Complete"):
|
96 |
with col1:
|
|
|
97 |
user_question = st.text_input("Ask a question from the Docs")
|
98 |
if user_question:
|
99 |
user_input(user_question, api_key)
|
100 |
+
raw_text = get_pdf_text(pdf_docs)
|
101 |
else:
|
102 |
with col1:
|
103 |
st.write("Please upload a document first to ask questions.")
|