embodied_explainer / handler.py
ccclemenfff's picture
fff
8b2c047
raw
history blame
256 Bytes
from inference import Chat # 你的模型类
class EndpointHandler:
def __init__(self, path="."):
self.chat = Chat()
def __call__(self, data):
inputs = data.get("inputs", data)
return {"results": self.chat.answer(inputs)}