Spaces:
Running on Zero
Running on Zero
Download maya3/__init__.py from hugging-apps/maya2-native: direct link, hf CLI and curl.
- Browser
- Download file 521 Bytes
-
https://huggingface.co/spaces/hugging-apps/maya2-native/resolve/main/maya3/__init__.py
- Command line
-
hf download hf://spaces/hugging-apps/maya2-native/maya3/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/hugging-apps/maya2-native/resolve/main/maya3/__init__.py
521 Bytes
| """Maya3 inference: fast streaming engine, voice registry with cached prefix KV, engine-internal guards, public API.""" | |
| __all__ = ["Maya3TTS", "Engine", "EngineConfig", "Voice"] | |
| def __getattr__(name): | |
| if name == "Maya3TTS": | |
| from maya3.api import Maya3TTS | |
| return Maya3TTS | |
| if name in ("Engine", "EngineConfig"): | |
| from maya3 import engine | |
| return getattr(engine, name) | |
| if name == "Voice": | |
| from maya3.prompt import Voice | |
| return Voice | |
| raise AttributeError(name) | |