Spaces:
Starting
Starting
Download src/utils.py from Mariusz47/MyProfileAvatar: direct link, hf CLI and curl.
- Browser
- Download file 534 Bytes
-
https://huggingface.co/spaces/Mariusz47/MyProfileAvatar/resolve/main/src/utils.py
- Command line
-
hf download hf://spaces/Mariusz47/MyProfileAvatar/src/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/Mariusz47/MyProfileAvatar/resolve/main/src/utils.py
534 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 ===") |