Spaces:
Running
Running
Download space/src/display/utils.py from ThinkcatLab/LiveHouse-TS: direct link, hf CLI and curl.
- Browser
- Download file 629 Bytes
-
https://huggingface.co/spaces/ThinkcatLab/LiveHouse-TS/resolve/main/space/src/display/utils.py
- Command line
-
hf download hf://spaces/ThinkcatLab/LiveHouse-TS/space/src/display/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/ThinkcatLab/LiveHouse-TS/resolve/main/space/src/display/utils.py
629 Bytes
| from dataclasses import dataclass | |
| class ColumnSpec: | |
| name: str | |
| type: str | |
| displayed_by_default: bool | |
| hidden: bool = False | |
| never_hidden: bool = False | |
| MODEL_INFO_COLUMNS = [ | |
| ColumnSpec("T", "str", True, never_hidden=True), | |
| ColumnSpec("Model", "markdown", True, never_hidden=True), | |
| ColumnSpec("Type", "str", False, hidden=True), | |
| ColumnSpec("Precision", "str", False, hidden=True), | |
| ColumnSpec("Organization", "str", True), | |
| ColumnSpec("Test Leak.", "str", True), | |
| ColumnSpec("Replication Code", "str", True), | |
| ] | |
| def fields(_cls): | |
| return MODEL_INFO_COLUMNS | |