Instructions to use Toc/toc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Toc/toc with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Toc/toc", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download ex/dynamic-prompts/scripts/dynamic_prompting.py from Toc/toc: direct link, hf CLI and curl.
- Browser
- Download file 108 Bytes
-
https://huggingface.co/Toc/toc/resolve/main/ex/dynamic-prompts/scripts/dynamic_prompting.py
- Command line
-
hf download hf://Toc/toc/ex/dynamic-prompts/scripts/dynamic_prompting.py
-
curl -L -o dynamic_prompting.py https://huggingface.co/Toc/toc/resolve/main/ex/dynamic-prompts/scripts/dynamic_prompting.py
108 Bytes
| # Automatic1111 entry point. | |
| from sd_dynamic_prompts.dynamic_prompting import Script | |
| __all__ = ["Script"] | |