SiraH commited on
Commit
917e206
1 Parent(s): 621a719

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -237,7 +237,7 @@ def main():
237
 
238
  uploaded_file = st.file_uploader('Choose your .pdf file', type="pdf")
239
  print(uploaded_file)
240
- if uploaded_file :
241
  pdf_reader = PdfReader(uploaded_file)
242
  text = ""
243
  for page in pdf_reader.pages:
 
237
 
238
  uploaded_file = st.file_uploader('Choose your .pdf file', type="pdf")
239
  print(uploaded_file)
240
+ if uploaded_file is not None:
241
  pdf_reader = PdfReader(uploaded_file)
242
  text = ""
243
  for page in pdf_reader.pages: