Spaces:
Sleeping
Sleeping
Download python_backend/src/Agents/models/submission_models.py from VashuTheGreat2/ML-Learner: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/src/Agents/models/submission_models.py
- Command line
-
hf download hf://spaces/VashuTheGreat2/ML-Learner/python_backend/src/Agents/models/submission_models.py
-
curl -L -o submission_models.py https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/src/Agents/models/submission_models.py
499 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": 6}, | |
| {"test": (0, 0), "expected_output": 0}, | |
| {"test": (-1, 5), "expected_output": 4}, | |
| {"test": (100, 200), "expected_output": 300}, | |
| {"test": (-10, -20), "expected_output": -30}, | |
| ]) |