Download tcod/tests/utils/plugins/my_workflow.py from SeanWang0027/ftb-sciworld-repro: direct link, hf CLI and curl.
- Browser
- Download file 500 Bytes
-
https://huggingface.co/SeanWang0027/ftb-sciworld-repro/resolve/main/tcod/tests/utils/plugins/my_workflow.py
- Command line
-
hf download hf://SeanWang0027/ftb-sciworld-repro/tcod/tests/utils/plugins/my_workflow.py
-
curl -L -o my_workflow.py https://huggingface.co/SeanWang0027/ftb-sciworld-repro/resolve/main/tcod/tests/utils/plugins/my_workflow.py
500 Bytes
| from typing import List | |
| from trinity.common.workflows import WORKFLOWS, Workflow | |
| class MyWorkflow(Workflow): | |
| def __init__(self, *, task, model, auxiliary_models=None): | |
| super().__init__(task=task, model=model, auxiliary_models=auxiliary_models) | |
| def repeatable(self): | |
| return True | |
| def set_repeat_times(self, repeat_times, run_id_base): | |
| pass | |
| def run(self) -> List: | |
| return ["Hello world", "Hi"] | |