Spaces:
Sleeping
Sleeping
Download ingestion_engine/text_extractor.py from Group-1-5010/NotebookLM: direct link, hf CLI and curl.
- Browser
- Download file 211 Bytes
-
https://huggingface.co/spaces/Group-1-5010/NotebookLM/resolve/main/ingestion_engine/text_extractor.py
- Command line
-
hf download hf://spaces/Group-1-5010/NotebookLM/ingestion_engine/text_extractor.py
-
curl -L -o text_extractor.py https://huggingface.co/spaces/Group-1-5010/NotebookLM/resolve/main/ingestion_engine/text_extractor.py
211 Bytes
| """Plain text file extraction.""" | |
| def extract(file_path: str) -> str: | |
| """Read a plain text file as UTF-8.""" | |
| with open(file_path, "r", encoding="utf-8", errors="replace") as f: | |
| return f.read() | |