Download shared.py from rsginc/nvtbsod: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/spaces/rsginc/nvtbsod/resolve/main/shared.py
- Command line
-
hf download hf://spaces/rsginc/nvtbsod/shared.py
-
curl -L -o shared.py https://huggingface.co/spaces/rsginc/nvtbsod/resolve/main/shared.py
539 Bytes
| #from pathlib import Path | |
| #import pandas as pd | |
| #app_dir = Path(__file__).parent | |
| #tips = pd.read_csv(app_dir / "tips.csv") | |
| from pathlib import Path | |
| #import pandas as pd | |
| import faicons as fa | |
| from shiny import ui | |
| app_dir = Path(__file__).parent | |
| #tips = pd.read_csv(app_dir / "tips.csv") | |
| def create_nav_button(button_icon, button_label_text, button_link, button_cls = "btn btn-primary"): | |
| return ui.tags.a( | |
| ui.HTML(f"{fa.icon_svg(button_icon)} {button_label_text}"), | |
| href=button_link, | |
| class_=button_cls | |
| ) | |