mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-14 00:53:25 +00:00
feat: blackbox call
This commit is contained in:
@ -12,6 +12,9 @@ class Sentiment(Blackbox):
|
||||
def __init__(self) -> None:
|
||||
self.engine = SentimentEngine('resources/sentiment_engine/models/paimon_sentiment.onnx')
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
return self.processing(*args, **kwargs)
|
||||
|
||||
def valid(self, *args, **kwargs) -> bool:
|
||||
data = args[0]
|
||||
return isinstance(data, str)
|
||||
|
||||
Reference in New Issue
Block a user