Download model.py from mac-test/Smoke-test: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/mac-test/Smoke-test/resolve/main/model.py
- Command line
-
hf download hf://mac-test/Smoke-test/model.py
-
curl -L -o model.py https://huggingface.co/mac-test/Smoke-test/resolve/main/model.py
507 Bytes
| from __future__ import annotations | |
| from modchallenge.interface.base_model import ModularMultiplicationModel | |
| class SmokeZeroModel(ModularMultiplicationModel): | |
| def load(self, model_dir: str) -> None: | |
| return None | |
| def preprocess_a(self, a: str) -> str: | |
| return a | |
| def preprocess_b(self, b: str) -> str: | |
| return b | |
| def preprocess_p(self, p: str) -> str: | |
| return p | |
| def predict_digits(self, a_enc: str, b_enc: str, p_enc: str) -> list[int]: | |
| return [0] | |