Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -101,6 +101,7 @@ def main():
|
|
101 |
if user_question:
|
102 |
user_input(user_question, api_key)
|
103 |
raw_text = get_pdf_text(pdf_docs)
|
|
|
104 |
else:
|
105 |
with col1:
|
106 |
st.write("Please upload a document first to ask questions.")
|
|
|
101 |
if user_question:
|
102 |
user_input(user_question, api_key)
|
103 |
raw_text = get_pdf_text(pdf_docs)
|
104 |
+
submitted = True
|
105 |
else:
|
106 |
with col1:
|
107 |
st.write("Please upload a document first to ask questions.")
|