wiraindrak commited on
Commit
ac78664
·
1 Parent(s): 1abf4af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(ARTICLE_TO_SUMMARIZE, return_tensors='pt')
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,