Spaces:
Sleeping
Sleeping
cleaning sentiment.py
Browse files- 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)
|
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)
|