Spaces:
Runtime error
Runtime error
Download utils/data_loader.py from subashdvorak/trygithubactions: direct link, hf CLI and curl.
- Browser
- Download file 292 Bytes
-
https://huggingface.co/spaces/subashdvorak/trygithubactions/resolve/215ec10dc398d2a67cbcb4e8c234528b8be06228/utils/data_loader.py
- Command line
-
hf download hf://spaces/subashdvorak/trygithubactions@215ec10dc398d2a67cbcb4e8c234528b8be06228/utils/data_loader.py
-
curl -L -o data_loader.py https://huggingface.co/spaces/subashdvorak/trygithubactions/resolve/215ec10dc398d2a67cbcb4e8c234528b8be06228/utils/data_loader.py
292 Bytes
| from datasets import load_dataset | |
| print("Loading dataset and indexing FAISS...") # Optional: for debugging | |
| dataset = load_dataset("subashdvorak/tiktok-formatted-story", revision="embedded") | |
| data = dataset['train'].add_faiss_index('embeddings') | |
| def load_influencer_data(): | |
| return data |