mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-13 16:53:24 +00:00
vlms updated
This commit is contained in:
@ -37,10 +37,6 @@ class Blackbox(ABC):
|
|||||||
async def fast_api_handler(self, request: Request) -> Response:
|
async def fast_api_handler(self, request: Request) -> Response:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
|
||||||
async def vlms_api_handler(self, request: Request) -> Response:
|
|
||||||
pass
|
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def __call__(self, *args, **kwargs):
|
def __call__(self, *args, **kwargs):
|
||||||
pass
|
pass
|
||||||
@ -47,7 +47,7 @@ class VLMS(Blackbox):
|
|||||||
|
|
||||||
return data.text
|
return data.text
|
||||||
|
|
||||||
async def vlms_api_handler(self, request: Request) -> Response:
|
async def fast_api_handler(self, request: Request) -> Response:
|
||||||
try:
|
try:
|
||||||
data = await request.json()
|
data = await request.json()
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user