Spaces:
Sleeping
Sleeping
Download utils/docx_reader.py from nelsondiasandre/Summarize-Agent: direct link, hf CLI and curl.
- Browser
- Download file 165 Bytes
-
https://huggingface.co/spaces/nelsondiasandre/Summarize-Agent/resolve/main/utils/docx_reader.py
- Command line
-
hf download hf://spaces/nelsondiasandre/Summarize-Agent/utils/docx_reader.py
-
curl -L -o docx_reader.py https://huggingface.co/spaces/nelsondiasandre/Summarize-Agent/resolve/main/utils/docx_reader.py
165 Bytes
| from docx import Document | |
| def read_docx(path): | |
| doc = Document(path) | |
| return "\n".join( | |
| paragraph.text for paragraph in doc.paragraphs | |
| ) |