Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def parse_pdf(pdf_file, output_format, progress=gr.Progress()):
|
|
73 |
"tables": [table.to_dict(orient='records') for table in tables if not table.columns.duplicated().any()],
|
74 |
"images": images
|
75 |
}
|
76 |
-
json.dump(json_data, tmp, indent=4)
|
77 |
elif output_format == "Markdown":
|
78 |
markdown_text = f"# Extracted Text\n\n{text}\n\n# Tables\n"
|
79 |
for i, table in enumerate(tables):
|
|
|
73 |
"tables": [table.to_dict(orient='records') for table in tables if not table.columns.duplicated().any()],
|
74 |
"images": images
|
75 |
}
|
76 |
+
json.dump(json_data, tmp, ensure_ascii=False, indent=4) # Ensure ASCII compatibility
|
77 |
elif output_format == "Markdown":
|
78 |
markdown_text = f"# Extracted Text\n\n{text}\n\n# Tables\n"
|
79 |
for i, table in enumerate(tables):
|