Spaces:
Sleeping
Sleeping
Download server/inputs/base.py from DevastatingRPG/toolforge-env: direct link, hf CLI and curl.
- Browser
- Download file 272 Bytes
-
https://huggingface.co/spaces/DevastatingRPG/toolforge-env/resolve/main/server/inputs/base.py
- Command line
-
hf download hf://spaces/DevastatingRPG/toolforge-env/server/inputs/base.py
-
curl -L -o base.py https://huggingface.co/spaces/DevastatingRPG/toolforge-env/resolve/main/server/inputs/base.py
272 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 | |