Spaces:
Running
Running
Update app.py
Browse files
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
|