sotirios-slv commited on
Commit
a7f196b
1 Parent(s): 5ca4cef

Updated excel writer engine

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ def download_output(ocr_text: str, named_entities: str, image_name="test"):
57
  ocr_df = pd.Series(ocr_text)
58
  ner_df = pd.Series(named_entities_list)
59
 
60
- with pd.ExcelWriter(output_file) as writer:
61
  ocr_df.to_excel(writer, sheet_name="OCR text", columns=["OCR text"])
62
  ner_df.to_excel(
63
  writer, sheet_name="Named entities", columns=["Named entities"]
 
57
  ocr_df = pd.Series(ocr_text)
58
  ner_df = pd.Series(named_entities_list)
59
 
60
+ with pd.ExcelWriter(output_file, engine="xlsxwriter") as writer:
61
  ocr_df.to_excel(writer, sheet_name="OCR text", columns=["OCR text"])
62
  ner_df.to_excel(
63
  writer, sheet_name="Named entities", columns=["Named entities"]