Spaces:
Runtime error
Runtime error
Update sumerize.py
Browse files- sumerize.py +2 -2
sumerize.py
CHANGED
|
@@ -187,7 +187,7 @@ def create_extraction_prompt(content):
|
|
| 187 |
)
|
| 188 |
return prompt
|
| 189 |
|
| 190 |
-
def
|
| 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
|
| 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()])
|