Download fixed_reply.py from aiflows/FixedReplyFlowModule: direct link, hf CLI and curl.
- Browser
- Download file 476 Bytes
-
https://huggingface.co/aiflows/FixedReplyFlowModule/resolve/65fbdbe19f5a8fdc48810810812552c5674d35a5/fixed_reply.py
- Command line
-
hf download hf://aiflows/FixedReplyFlowModule@65fbdbe19f5a8fdc48810810812552c5674d35a5/fixed_reply.py
-
curl -L -o fixed_reply.py https://huggingface.co/aiflows/FixedReplyFlowModule/resolve/65fbdbe19f5a8fdc48810810812552c5674d35a5/fixed_reply.py
476 Bytes
| from typing import Dict, Any | |
| from flows.base_flows import AtomicFlow | |
| class FixedReplyFlow(AtomicFlow): | |
| REQUIRED_KEYS_CONFIG = ["fixed_reply"] | |
| __default_flow_config = { | |
| "input_interface": [], | |
| "output_interface": ["fixed_reply"], | |
| } | |
| def __init__(self, **kwargs): | |
| super().__init__(**kwargs) | |
| def run(self, | |
| input_data: Dict[str, Any]) -> Dict[str, Any]: | |
| return {"fixed_reply": self.flow_config["fixed_reply"]} | |