Stanford-TH commited on
Commit
0b0b5f1
1 Parent(s): 4f41a94

Update genre_pipe.py

Browse files
Files changed (1) hide show
  1. genre_pipe.py +1 -1
genre_pipe.py CHANGED
@@ -54,7 +54,7 @@ class GenrePredictionPipeline(Pipeline):
54
  if type(processed_description) == str:
55
  tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
56
  encoded_text = tokenizer.encode_plus(
57
- text, None, add_special_tokens=True, max_length=512,
58
  padding='max_length', return_token_type_ids=True, truncation=True,
59
  return_tensors='pt', return_overflowing_tokens=True )
60
 
 
54
  if type(processed_description) == str:
55
  tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
56
  encoded_text = tokenizer.encode_plus(
57
+ processed_description, None, add_special_tokens=True, max_length=512,
58
  padding='max_length', return_token_type_ids=True, truncation=True,
59
  return_tensors='pt', return_overflowing_tokens=True )
60