zman1x1 commited on
Commit
1cce785
1 Parent(s): 1814537
Files changed (1) hide show
  1. models/distilbart_cnn_12_6.py +0 -2
models/distilbart_cnn_12_6.py CHANGED
@@ -24,8 +24,6 @@ def summarize(text, max_len=20):
24
  truncation=True,
25
  ).input_ids
26
 
27
- # Move the inputs tensor to the same device as the model tensor
28
- inputs = inputs.cuda()
29
 
30
  outputs = model.generate(inputs,
31
  max_new_tokens=100,
 
24
  truncation=True,
25
  ).input_ids
26
 
 
 
27
 
28
  outputs = model.generate(inputs,
29
  max_new_tokens=100,