pierreguillou commited on
Commit
77ff85e
·
verified ·
1 Parent(s): 4483a9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -229,8 +229,8 @@ def process_pdf(pdf_file):
229
  json.dump(extracted_data, f, ensure_ascii=False, indent=2)
230
 
231
  # Generate DOCX report
232
- generator = RapportGenerator(json_path)
233
  docx_path = os.path.join(temp_dir, "rapport_extraction.docx")
 
234
  generator.generate_report()
235
 
236
  return text_file_path, zip_path, json_path, docx_path
 
229
  json.dump(extracted_data, f, ensure_ascii=False, indent=2)
230
 
231
  # Generate DOCX report
 
232
  docx_path = os.path.join(temp_dir, "rapport_extraction.docx")
233
+ generator = RapportGenerator(json_path, docx_path)
234
  generator.generate_report()
235
 
236
  return text_file_path, zip_path, json_path, docx_path