Spaces:
Sleeping
Sleeping
Download server/src/models/code_run_models.py from VashuTheGreat2/ML-Learner: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/server/src/models/code_run_models.py
- Command line
-
hf download hf://spaces/VashuTheGreat2/ML-Learner/server/src/models/code_run_models.py
-
curl -L -o code_run_models.py https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/server/src/models/code_run_models.py
501 Bytes
| from pydantic import BaseModel, Field | |
| class Submission(BaseModel): | |
| code: str = "Y2xhc3MgU29sdXRpb246CiAgICBkZWYgYWRkKHNlbGYsIGEsIGIpOgogICAgICAgIHJldHVybiBhICsgYgo=" | |
| function_name: str = "add" | |
| test_cases: list = Field(default=[ | |
| {"test": (2, 3), "expected_output": 5}, | |
| {"test": (0, 0), "expected_output": 0}, | |
| {"test": (-1, 5), "expected_output": 4}, | |
| {"test": (100, 200), "expected_output": 300}, | |
| {"test": (-10, -20), "expected_output": -30}, | |
| ]) | |