mirror of
https://git.isriupjv.fr/ISRI/ai-server
synced 2025-04-24 01:58:12 +02:00
19 lines
380 B
Python
19 lines
380 B
Python
import json
|
|
|
|
from source.model import base
|
|
|
|
|
|
class DummyModel(base.BaseModel):
|
|
"""
|
|
A dummy model, mainly used to test the API and the manager.
|
|
simply send back the request made to it.
|
|
"""
|
|
|
|
def _load(self) -> None:
|
|
pass
|
|
|
|
def _unload(self) -> None:
|
|
pass
|
|
|
|
def _infer(self, payload: dict) -> str | bytes:
|
|
return json.dumps(payload)
|