vinayakdev commited on
Commit
2654d9d
1 Parent(s): a4b6666

Update generator

Browse files
Files changed (1) hide show
  1. generator.py +1 -1
generator.py CHANGED
@@ -59,7 +59,7 @@ def run_model(input_string, **generator_args):
59
 
60
  inputs = tokenize([input_string])
61
 
62
- res = model.generate(input_ids=inputs['input_ids'], attention_mask=inputs['attention_mask'], **generate_args)
63
  output = hftokenizer.decode(res[0], skip_special_tokens=True)
64
  output = [item.split("<sep>") for item in output]
65
  output = [o.strip() for o in output[:-1]]
 
59
 
60
  inputs = tokenize([input_string])
61
 
62
+ res = model.generate(input_ids=inputs['input_ids'], attention_mask=inputs['attention_mask'], **generator_args)
63
  output = hftokenizer.decode(res[0], skip_special_tokens=True)
64
  output = [item.split("<sep>") for item in output]
65
  output = [o.strip() for o in output[:-1]]