Spaces:
Paused
Paused
Download src/utils.py from Ephraimmm/Avatar-chat: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/spaces/Ephraimmm/Avatar-chat/resolve/main/src/utils.py
- Command line
-
hf download hf://spaces/Ephraimmm/Avatar-chat/src/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/Ephraimmm/Avatar-chat/resolve/main/src/utils.py
546 Bytes
| from src.file_loader import load_pdf_text, load_text_file | |
| # --------------------------------------------------------------------- | |
| # FILE READER | |
| # --------------------------------------------------------------------- | |
| class FileReader: | |
| def __init__(self): | |
| self.linkedin_profile = load_pdf_text("./me/Linkedin_Profile.pdf") | |
| self.additional_info = load_text_file("./me/additional_info.txt") | |
| # print("=== LINKEDIN PROFILE CONTENT ===") | |
| # print(self.linkedin_profile) | |
| # print("=== END ===") |