Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -79,6 +79,9 @@ def main():
|
|
79 |
# Main column for displaying extracted text and user interaction
|
80 |
col1, col2 = st.columns([1, 2])
|
81 |
raw_text = None
|
|
|
|
|
|
|
82 |
if pdf_docs:
|
83 |
with col1:
|
84 |
if st.button("Submit"):
|
@@ -101,9 +104,7 @@ def main():
|
|
101 |
# user_input(user_question, api_key)
|
102 |
# raw_text = get_pdf_text(pdf_docs)
|
103 |
# # Show message if no PDF documents are uploaded
|
104 |
-
|
105 |
-
# with col1:
|
106 |
-
# st.write("Please upload a document first to proceed.")
|
107 |
|
108 |
# Display extracted text if available
|
109 |
if raw_text is not None:
|
|
|
79 |
# Main column for displaying extracted text and user interaction
|
80 |
col1, col2 = st.columns([1, 2])
|
81 |
raw_text = None
|
82 |
+
if pdf_docs is None:
|
83 |
+
with col1:
|
84 |
+
st.write("Please upload a document first to proceed.")
|
85 |
if pdf_docs:
|
86 |
with col1:
|
87 |
if st.button("Submit"):
|
|
|
104 |
# user_input(user_question, api_key)
|
105 |
# raw_text = get_pdf_text(pdf_docs)
|
106 |
# # Show message if no PDF documents are uploaded
|
107 |
+
|
|
|
|
|
108 |
|
109 |
# Display extracted text if available
|
110 |
if raw_text is not None:
|