Spaces:
Running
Running
Download app/web/pages.py from cmeneses99/sms-classifier-api: direct link, hf CLI and curl.
- Browser
- Download file 596 Bytes
-
https://huggingface.co/spaces/cmeneses99/sms-classifier-api/resolve/main/app/web/pages.py
- Command line
-
hf download hf://spaces/cmeneses99/sms-classifier-api/app/web/pages.py
-
curl -L -o pages.py https://huggingface.co/spaces/cmeneses99/sms-classifier-api/resolve/main/app/web/pages.py
596 Bytes
| from fastapi import APIRouter | |
| from fastapi.responses import HTMLResponse | |
| from ..utils import read_static | |
| router = APIRouter(include_in_schema=False) | |
| def home(): | |
| return read_static("home.html") | |
| def classify_ui(): | |
| return read_static("index.html") | |
| def batch_ui(): | |
| return read_static("batch.html") | |
| def categories_view(): | |
| return read_static("categories.html") | |