jejun commited on
Commit
547399c
1 Parent(s): 0ca9784

Update demo/top_sampling.py

Browse files
Files changed (1) hide show
  1. demo/top_sampling.py +1 -1
demo/top_sampling.py CHANGED
@@ -23,7 +23,7 @@ def skip_special_tokens_and_prettify(text, tokenizer):
23
  re.sub("|".join(tokenizer.all_special_tokens), "", text)
24
  )
25
 
26
- data = {"bitle": "", "ingredients": [], "directions": []}
27
  for section in text.split("\n"):
28
  section = section.strip()
29
  section = section.strip()
 
23
  re.sub("|".join(tokenizer.all_special_tokens), "", text)
24
  )
25
 
26
+ data = {"title": "", "ingredients": [], "directions": []}
27
  for section in text.split("\n"):
28
  section = section.strip()
29
  section = section.strip()