Download shared.py from Hztech/bot: direct link, hf CLI and curl.
- Browser
- Download file 119 Bytes
-
https://huggingface.co/spaces/Hztech/bot/resolve/main/shared.py
- Command line
-
hf download hf://spaces/Hztech/bot/shared.py
-
curl -L -o shared.py https://huggingface.co/spaces/Hztech/bot/resolve/main/shared.py
119 Bytes
| from pathlib import Path | |
| import pandas as pd | |
| app_dir = Path(__file__).parent | |
| tips = pd.read_csv(app_dir / "tips.csv") |