Spaces:
Runtime error
Runtime error
Download src/constants.py from mulsi/explore-label-concepts: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/spaces/mulsi/explore-label-concepts/resolve/main/src/constants.py
- Command line
-
hf download hf://spaces/mulsi/explore-label-concepts/src/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/mulsi/explore-label-concepts/resolve/main/src/constants.py
519 Bytes
| """Constants use in the space. | |
| """ | |
| import os | |
| import pathlib | |
| DATASET_NAME = "mulsi/fruit-vegetable-concepts" | |
| CONCEPTS = [ | |
| # Environment | |
| "stem", | |
| "leaf", | |
| "tail", | |
| "seed", | |
| "pulp", | |
| "soil", | |
| "tree", | |
| # Shapes | |
| "ovaloid", | |
| "sphere", | |
| "cylinder", | |
| "cube", | |
| # Colors | |
| "black", | |
| "purple", | |
| "red", | |
| "blue", | |
| "green", | |
| "brown", | |
| "orange", | |
| "yellow", | |
| "white", | |
| ] | |
| ASSETS_FOLDER = pathlib.Path(__file__).parent / "assets" | |
| HF_TOKEN = os.getenv("HF_TOKEN") | |