Spaces:
Sleeping
Sleeping
Download server/inputs/base.py from Hugging-coder14/toolforge-env: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/spaces/Hugging-coder14/toolforge-env/resolve/main/server/inputs/base.py
- Command line
-
hf download hf://spaces/Hugging-coder14/toolforge-env/server/inputs/base.py
-
curl -L -o base.py https://huggingface.co/spaces/Hugging-coder14/toolforge-env/resolve/main/server/inputs/base.py
286 Bytes
| from abc import ABC, abstractmethod | |
| from models import Task | |
| class InputProvider(ABC): | |
| """Abstract interface for all input sources.""" | |
| def get_input(self) -> Task: | |
| pass | |
| def is_done(self) -> bool: | |
| pass | |