Download config.py from Fuzure/sheami: direct link, hf CLI and curl.
- Browser
- Download file 757 Bytes
-
https://huggingface.co/spaces/Fuzure/sheami/resolve/main/config.py
- Command line
-
hf download hf://spaces/Fuzure/sheami/config.py
-
curl -L -o config.py https://huggingface.co/spaces/Fuzure/sheami/resolve/main/config.py
757 Bytes
| import os | |
| class SheamiConfig: | |
| base_dir = os.path.dirname(os.path.abspath(__file__)) # project root | |
| _output_dir = os.path.join(base_dir, "output") | |
| data_dir = os.path.join(base_dir, "data") | |
| logo_path = os.path.join(base_dir, "assets", "logo.jpg") | |
| logo_small_path = os.path.join(base_dir, "assets", "logo-small.jpg") | |
| favicon_path = os.path.join(base_dir, "assets", "favicon.jpg") | |
| user_icon_path = os.path.join(base_dir, "assets", "user.png") | |
| banner_path = os.path.join(base_dir, "assets", "sheami_features_banner.png") | |
| def get_output_dir(thread_id: str): | |
| path = os.path.join(SheamiConfig._output_dir, thread_id) | |
| os.makedirs(path, exist_ok=True) # ensure it exists | |
| return path | |