UNIST-Eunchan commited on
Commit
61aa0aa
·
1 Parent(s): e9c6881

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -96,8 +96,8 @@ def generate_output(test_samples):
96
  max_length=1024,
97
  return_tensors="pt",
98
  )
99
- input_ids = inputs.input_ids.to(model.)
100
- attention_mask = inputs.attention_mask.to(model)
101
  outputs = model.generate(input_ids,
102
  max_length = 256,
103
  min_length=32,
 
96
  max_length=1024,
97
  return_tensors="pt",
98
  )
99
+ input_ids = inputs.input_ids
100
+ attention_mask = inputs.attention_mask
101
  outputs = model.generate(input_ids,
102
  max_length = 256,
103
  min_length=32,