File size: 400 Bytes
c607869 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | from __future__ import annotations
from functools import lru_cache
from typing import Any
@lru_cache(maxsize=1)
def synth_persona_dataset_cached() -> Any:
from persona_data.synth_persona import SynthPersonaDataset
return SynthPersonaDataset()
@lru_cache(maxsize=1)
def synth_persona_attribute_names() -> tuple[str, ...]:
return tuple(synth_persona_dataset_cached().attribute_names)
|