Download src/discerna/contract/__init__.py from CrazyH0rse/Discerna-v1-475M: direct link, hf CLI and curl.
- Browser
- Download file 903 Bytes
-
https://huggingface.co/CrazyH0rse/Discerna-v1-475M/resolve/main/src/discerna/contract/__init__.py
- Command line
-
hf download hf://CrazyH0rse/Discerna-v1-475M/src/discerna/contract/__init__.py
-
curl -L -o __init__.py https://huggingface.co/CrazyH0rse/Discerna-v1-475M/resolve/main/src/discerna/contract/__init__.py
903 Bytes
| """The stable request/response contract. Import types from here.""" | |
| from discerna.contract.answers import ( | |
| build_answer, | |
| check_answer, | |
| check_response, | |
| criterion_text, | |
| distribution, | |
| option_keys, | |
| ) | |
| from discerna.contract.schema import ( | |
| MAX_LEVELS, | |
| MAX_OPTIONS, | |
| MIN_LEVELS, | |
| Answer, | |
| ChoiceAnswer, | |
| ChoiceQuestion, | |
| DecisionRequest, | |
| DecisionResponse, | |
| NoulAnswer, | |
| NoulQuestion, | |
| Question, | |
| ScoreAnswer, | |
| ScoreQuestion, | |
| Usage, | |
| ) | |
| __all__ = [ | |
| "MAX_LEVELS", | |
| "MAX_OPTIONS", | |
| "MIN_LEVELS", | |
| "Answer", | |
| "ChoiceAnswer", | |
| "ChoiceQuestion", | |
| "DecisionRequest", | |
| "DecisionResponse", | |
| "NoulAnswer", | |
| "NoulQuestion", | |
| "Question", | |
| "ScoreAnswer", | |
| "ScoreQuestion", | |
| "Usage", | |
| "build_answer", | |
| "check_answer", | |
| "check_response", | |
| "criterion_text", | |
| "distribution", | |
| "option_keys", | |
| ] | |