Spaces:
Sleeping
Sleeping
manue
commited on
Commit
·
03c041a
1
Parent(s):
e2d876b
Fix model path in sentiment pipeline initialization
Browse files- model/sentiment.py +1 -1
model/sentiment.py
CHANGED
|
@@ -3,6 +3,6 @@ from typing import Any
|
|
| 3 |
|
| 4 |
class Sentiment:
|
| 5 |
def __init__(self, line: str) -> (list | list[Any] | Any | None):
|
| 6 |
-
self.pipe = pipeline("text-classification", model='feel-it-italian-sentiment')
|
| 7 |
self.result = self.pipe(line)
|
| 8 |
|
|
|
|
| 3 |
|
| 4 |
class Sentiment:
|
| 5 |
def __init__(self, line: str) -> (list | list[Any] | Any | None):
|
| 6 |
+
self.pipe = pipeline("text-classification", model='./feel-it-italian-sentiment')
|
| 7 |
self.result = self.pipe(line)
|
| 8 |
|