manue commited on
Commit
82b5d0b
·
1 Parent(s): 1dc8930

Fix model path in sentiment pipeline initialization

Browse files
feel-it-italian-sentiment → model/feel-it-italian-sentiment RENAMED
File without changes
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