Spaces:
Running
Running
cpu mode
Browse files
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,
|