Instructions to use ssmaameri/qrcode with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ssmaameri/qrcode with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("ssmaameri/qrcode") pipe = StableDiffusionControlNetPipeline.from_pretrained( "fill-in-base-model", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
Download test.py from ssmaameri/qrcode: direct link, hf CLI and curl.
- Browser
- Download file 143 Bytes
-
https://huggingface.co/ssmaameri/qrcode/resolve/main/test.py
- Command line
-
hf download hf://ssmaameri/qrcode/test.py
-
curl -L -o test.py https://huggingface.co/ssmaameri/qrcode/resolve/main/test.py
143 Bytes
| from handler import EndpointHandler | |
| # init handler | |
| my_handler = EndpointHandler(path=".") | |
| # show results | |
| print(my_handler({'name': 'sami'})) | |