KarthickAdopleAI commited on
Commit
3a2ed82
·
verified ·
1 Parent(s): 7f08f2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -168,11 +168,9 @@ if 'file_processed' not in st.session_state:
168
  # Function to process the uploaded file
169
  def process_file(uploaded_file):
170
  with st.spinner("Processing document..."):
171
- # Read file content
172
- if uploaded_file.type == "application/pdf":
173
- pdfextract = PDFExtract()
174
- db = pdfextract.main([uploaded_file.name])
175
-
176
  return db
177
 
178
  # Center the file uploader
 
168
  # Function to process the uploaded file
169
  def process_file(uploaded_file):
170
  with st.spinner("Processing document..."):
171
+ pdfextract = PDFExtract()
172
+ db = pdfextract.main([uploaded_file.name])
173
+
 
 
174
  return db
175
 
176
  # Center the file uploader