Spaces:
Runtime error
Runtime error
Commit
·
ac78664
1
Parent(s):
1abf4af
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def summ_t5(text):
|
|
25 |
return summary_text
|
26 |
|
27 |
def summ_bert(text):
|
28 |
-
input_ids = tokenizer_bert.encode(
|
29 |
summary_ids = model_bert.generate(input_ids,
|
30 |
min_length=20,
|
31 |
max_length=100,
|
|
|
25 |
return summary_text
|
26 |
|
27 |
def summ_bert(text):
|
28 |
+
input_ids = tokenizer_bert.encode(text, return_tensors='pt')
|
29 |
summary_ids = model_bert.generate(input_ids,
|
30 |
min_length=20,
|
31 |
max_length=100,
|