SoDa12321 commited on
Commit
6b0d9aa
·
verified ·
1 Parent(s): db98d3c

Update sumerize.py

Browse files
Files changed (1) hide show
  1. sumerize.py +2 -2
sumerize.py CHANGED
@@ -187,7 +187,7 @@ def create_extraction_prompt(content):
187
  )
188
  return prompt
189
 
190
- def generate_data_from_docx(file):
191
  """Generate data dictionary from uploaded DOCX file."""
192
  doc = Document(file)
193
  content = "\n".join([p.text for p in doc.paragraphs if p.text.strip()])
@@ -273,7 +273,7 @@ def generate_data_from_docx(file):
273
  import re
274
  from typing import Dict, Any
275
 
276
- def generate_data_from_docx_2(file):
277
  """Generate data dictionary from uploaded DOCX file."""
278
  doc = Document(file)
279
  content = "\n".join([p.text for p in doc.paragraphs if p.text.strip()])
 
187
  )
188
  return prompt
189
 
190
+ def generate_data_from_docx_1(file):
191
  """Generate data dictionary from uploaded DOCX file."""
192
  doc = Document(file)
193
  content = "\n".join([p.text for p in doc.paragraphs if p.text.strip()])
 
273
  import re
274
  from typing import Dict, Any
275
 
276
+ def generate_data_from_docx(file):
277
  """Generate data dictionary from uploaded DOCX file."""
278
  doc = Document(file)
279
  content = "\n".join([p.text for p in doc.paragraphs if p.text.strip()])