Download image/qr.py from cloudfom/it: direct link, hf CLI and curl.
- Browser
- Download file 113 Bytes
-
https://huggingface.co/spaces/cloudfom/it/resolve/main/image/qr.py
- Command line
-
hf download hf://spaces/cloudfom/it/image/qr.py
-
curl -L -o qr.py https://huggingface.co/spaces/cloudfom/it/resolve/main/image/qr.py
113 Bytes
| import qrcode | |
| def generate_qr(url: str): | |
| qr = qrcode.make(url) | |
| qr = qr.resize((120, 120)) | |
| return qr | |