Uzaiir commited on
Commit
0f4b0b6
·
verified ·
1 Parent(s): d696afd

Update src/PDFprocess_sample.py

Browse files
Files changed (1) hide show
  1. src/PDFprocess_sample.py +1 -1
src/PDFprocess_sample.py CHANGED
@@ -20,7 +20,7 @@ def process_pdf(uploaded_file):
20
  for uploaded_file in uploaded_file:
21
 
22
  with tempfile.NamedTemporaryFile(delete=False , suffix='.pdf') as temp_file:
23
- temp_file.write(uploaded_file_bytes) ## write file to temporary
24
  temp_file_path = temp_file.name # Get the temporary file path
25
 
26
  # temp_file_path = os.path.join("/tmp", uploaded_file.name)
 
20
  for uploaded_file in uploaded_file:
21
 
22
  with tempfile.NamedTemporaryFile(delete=False , suffix='.pdf') as temp_file:
23
+ temp_file.write(uploaded_file) ## write file to temporary
24
  temp_file_path = temp_file.name # Get the temporary file path
25
 
26
  # temp_file_path = os.path.join("/tmp", uploaded_file.name)