Huzaifa367 commited on
Commit
6060238
·
verified ·
1 Parent(s): 95d043d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,7 +78,7 @@ def main():
78
 
79
  # Main column for displaying extracted text and user interaction
80
  col1, col2 = st.columns([1, 2])
81
-
82
  if pdf_docs:
83
  with col1:
84
  if st.button("Submit"):
@@ -96,7 +96,7 @@ def main():
96
  user_input(user_question, api_key)
97
 
98
  # Display extracted text if available
99
- if raw_text:
100
  with col2:
101
  st.subheader("Extracted Text from PDF:")
102
  st.text(raw_text)
 
78
 
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"):
 
96
  user_input(user_question, api_key)
97
 
98
  # Display extracted text if available
99
+ if raw_text is not None:
100
  with col2:
101
  st.subheader("Extracted Text from PDF:")
102
  st.text(raw_text)