Text Classification
Transformers
PyTorch
bert
Inference Endpoints
rttl commited on
Commit
b827343
1 Parent(s): 4d90ca7

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -11,7 +11,7 @@ class PreTrainedPipeline():
11
  Initialize model
12
  """
13
  self.bert_tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
14
- self.model = FoodyBertForSequenceClassification.from_pretrained("rttl-ai/foody-bert")
15
  #def __call__(self, inputs: str) -> List[float]:
16
  def __call__(self, inputs: str) -> str:
17
  """
 
11
  Initialize model
12
  """
13
  self.bert_tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
14
+ self.model = FoodyBertForSequenceClassification.from_pretrained(".")
15
  #def __call__(self, inputs: str) -> List[float]:
16
  def __call__(self, inputs: str) -> str:
17
  """