Skip to content

Commit

Permalink
code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramyrahmeni committed Jun 22, 2024
1 parent ba6be06 commit 1f7679c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,9 @@ def main():
st.session_state.pdf_uploaded = True
if embeddings is None and pages_and_chunks is None:
with st.spinner('Processing PDF...'):
with tempfile.NamedTemporaryFile(delete=False) as tmp_file:
tmp_file.write(pdf.read())
tmp_file_path = tmp_file.name
pages_and_texts = open_and_read_pdf(pdf)

# Extract tables from the PDF
tables = extract_tables_from_pdf(tmp_file_path)
nlp = English()
nlp.add_pipe("sentencizer")
text_chunks=[]
Expand Down

0 comments on commit 1f7679c

Please sign in to comment.