Spaces:
Running on Zero
Running on Zero
Download qr_modal_requirements.py from Oysiyl/AI-QR-code-generator: direct link, hf CLI and curl.
- Browser
- Download file 387 Bytes
-
https://huggingface.co/spaces/Oysiyl/AI-QR-code-generator/resolve/main/qr_modal_requirements.py
- Command line
-
hf download hf://spaces/Oysiyl/AI-QR-code-generator/qr_modal_requirements.py
-
curl -L -o qr_modal_requirements.py https://huggingface.co/spaces/Oysiyl/AI-QR-code-generator/resolve/main/qr_modal_requirements.py
387 Bytes
| from __future__ import annotations | |
| from pathlib import Path | |
| def read_modal_requirements(file_path: str | Path) -> list[str]: | |
| file_path = Path(file_path) | |
| values: list[str] = [] | |
| for raw_line in file_path.read_text().splitlines(): | |
| line = raw_line.strip() | |
| if not line or line.startswith("#"): | |
| continue | |
| values.append(line) | |
| return values | |