Spaces:
Build error
Build error
Download core/base_module.py from cryogenic22/Synaptyx: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/spaces/cryogenic22/Synaptyx/resolve/main/core/base_module.py
- Command line
-
hf download hf://spaces/cryogenic22/Synaptyx/core/base_module.py
-
curl -L -o base_module.py https://huggingface.co/spaces/cryogenic22/Synaptyx/resolve/main/core/base_module.py
542 Bytes
| # core/base_module.py | |
| from abc import ABC, abstractmethod | |
| from typing import Dict, List | |
| class AIModule(ABC): | |
| """Base class for all AI modules.""" | |
| async def process(self, input_data: Dict) -> Dict: | |
| """Process input data and return results.""" | |
| pass | |
| async def get_status(self) -> Dict: | |
| """Get module status.""" | |
| pass | |
| def capabilities(self) -> List[str]: | |
| """List module capabilities.""" | |
| pass | |