Aymeric Ducatez commited on
Commit
8f76b55
·
1 Parent(s): fdf393b
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def reduce_pdf(input_folder,reduced_pdf_folder):
36
  end_page = int(match.group(2))
37
  base_name = re.sub(r'_\d+-\d+\.pdf$', '.pdf', filename)
38
 
39
- pdf_path = filename
40
  output_path = os.path.join(reduced_pdf_folder, base_name)
41
 
42
  extract_pages(pdf_path, start_page, end_page, output_path)
 
36
  end_page = int(match.group(2))
37
  base_name = re.sub(r'_\d+-\d+\.pdf$', '.pdf', filename)
38
 
39
+ pdf_path = os.path.join(input_folder, filename)
40
  output_path = os.path.join(reduced_pdf_folder, base_name)
41
 
42
  extract_pages(pdf_path, start_page, end_page, output_path)