Skip to content

Commit

Permalink
types being overwritten
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Wang committed Nov 20, 2024
1 parent 1af9176 commit e0d2cc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/PDFService/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,18 +274,18 @@ async def convert_pdf(
# Read all file contents and filenames
contents = []
filenames = []
types = []
file_types = []
for file, type in zip(files, types):
content = await file.read()
contents.append(content)
filenames.append(file.filename)
types.append(type)
file_types.append(type)

span.set_attribute("num_files", len(files))
job_manager.create_job(job_id)

# Start processing in background
background_tasks.add_task(convert_pdfs, job_id, contents, filenames, types, vdb_task)
background_tasks.add_task(convert_pdfs, job_id, contents, filenames, file_types, vdb_task)

return {"job_id": job_id}

Expand Down

0 comments on commit e0d2cc9

Please sign in to comment.