Spaces:
Sleeping
Sleeping
Download app.py from Hoctar77/fedstylevalidator: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/spaces/Hoctar77/fedstylevalidator/resolve/main/app.py
- Command line
-
hf download hf://spaces/Hoctar77/fedstylevalidator/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Hoctar77/fedstylevalidator/resolve/main/app.py
572 Bytes
| from __future__ import annotations | |
| import sys | |
| from pathlib import Path | |
| import streamlit as st | |
| def _ensure_src_on_path() -> None: | |
| repo_root = Path(__file__).resolve().parent | |
| src_path = repo_root / "src" | |
| src_path_str = str(src_path) | |
| if src_path_str not in sys.path: | |
| sys.path.insert(0, src_path_str) | |
| def main() -> None: | |
| _ensure_src_on_path() | |
| from fsv_streamlit.ui import run_app | |
| st.set_page_config( | |
| page_title="Federal Style Validator (FSV)", | |
| page_icon="\u2708", | |
| layout="wide", | |
| ) | |
| run_app() | |
| main() | |