Download app.py from scanista/README: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/spaces/scanista/README/resolve/main/app.py
- Command line
-
hf download hf://spaces/scanista/README/app.py
-
curl -L -o app.py https://huggingface.co/spaces/scanista/README/resolve/main/app.py
379 Bytes
| import gradio as gr | |
| import qrcode | |
| from PIL import Image | |
| def generate_qr(text): | |
| qr = qrcode.make(text) | |
| return qr | |
| interface = gr.Interface( | |
| fn=generate_qr, | |
| inputs=gr.Textbox(label="Enter text or URL"), | |
| outputs=gr.Image(type="pil"), | |
| title="Scanista QR Maker", | |
| description="Create quick, scannable QR codes from any text or link." | |
| ) | |
| interface.launch() | |