mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-14 00:53:25 +00:00
feat
This commit is contained in:
@ -3,14 +3,14 @@ from typing import Any, Coroutine
|
||||
from fastapi import Request, Response, status
|
||||
from fastapi.responses import JSONResponse
|
||||
|
||||
from sentiment_engine.sentiment_engine import SentimentEngine
|
||||
from ..sentiment_engine.sentiment_engine import SentimentEngine
|
||||
from .blackbox import Blackbox
|
||||
|
||||
|
||||
class Sentiment(Blackbox):
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.engine = SentimentEngine('resources/sentiment_engine/models/paimon_sentiment.onnx')
|
||||
self.engine = SentimentEngine()
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
return self.processing(*args, **kwargs)
|
||||
|
||||
@ -4,7 +4,7 @@ from ntpath import join
|
||||
from fastapi import Request, Response, status
|
||||
from fastapi.responses import JSONResponse
|
||||
from .blackbox import Blackbox
|
||||
from tts.tts_service import TTService
|
||||
from ..tts.tts_service import TTService
|
||||
|
||||
class TTS(Blackbox):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user