Spaces:
Sleeping
Sleeping
File size: 250 Bytes
01ad777 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
class TextClassifier:
def __init__(self, model) -> None:
self.text_classifier = model
def classify(self,text):
data = self.text_classifier(text)[0]
print("response from hugging \n", data)
return data
|