manudev-1 commited on
Commit
2297e70
·
1 Parent(s): 7e8513d

cleaning sentiment.py

Browse files
Files changed (1) hide show
  1. model/sentiment.py +1 -2
model/sentiment.py CHANGED
@@ -1,8 +1,7 @@
1
  from transformers import pipeline
2
- from typing import Any
3
 
4
  class Sentiment:
5
- def __init__(self, line: str) -> (list | list[Any] | Any | None):
6
  # self = this in C#
7
  self.pipe = pipeline("text-classification", model="MilaNLProc/feel-it-italian-sentiment")
8
  self.result = self.pipe(line)
 
1
  from transformers import pipeline
 
2
 
3
  class Sentiment:
4
+ def __init__(self, line: str):
5
  # self = this in C#
6
  self.pipe = pipeline("text-classification", model="MilaNLProc/feel-it-italian-sentiment")
7
  self.result = self.pipe(line)