Examples for PLAID objects.
plaid.downloadable_examples.AVAILABLE_EXAMPLES
module-attribute
AVAILABLE_EXAMPLES = list(keys())
plaid.downloadable_examples.samples
module-attribute
samples = Samples_example()
plaid.downloadable_examples.Samples_example
Source code in plaid/downloadable_examples/__init__.py
| def __init__(self):
self.cache: dict[str, Sample] = {}
|
plaid.downloadable_examples.Samples_example.cache
instance-attribute
plaid.downloadable_examples.Samples_example.__getattr__
Source code in plaid/downloadable_examples/__init__.py
| def __getattr__(self, key):
if key in _HF_REPOS.keys():
if key not in self.cache:
self.cache[key] = _download_sample(_HF_REPOS[key])
return self.cache[key]
raise ValueError(f"cant find example sample {key}")
|