Instructions to use HopeTD/consulting with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use HopeTD/consulting with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ByteDance/Hyper-SD", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("HopeTD/consulting") prompt = "Hopedesigns" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download deploy_space_action.yaml from HopeTD/consulting: direct link, hf CLI and curl.
- Browser
- Download file 541 Bytes
-
https://huggingface.co/HopeTD/consulting/resolve/main/deploy_space_action.yaml
- Command line
-
hf download hf://HopeTD/consulting/deploy_space_action.yaml
-
curl -L -o deploy_space_action.yaml https://huggingface.co/HopeTD/consulting/resolve/main/deploy_space_action.yaml
541 Bytes
| name: Run Python script | |
| on: | |
| push: | |
| branches: | |
| - $branch | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.9' | |
| - name: Install Gradio | |
| run: python -m pip install gradio | |
| - name: Log in to Hugging Face | |
| run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")' | |
| - name: Deploy to Spaces | |
| run: gradio deploy | |