minnehwg commited on
Commit
39df2a7
1 Parent(s): 25121bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -26,7 +26,8 @@ def summarize(text, model, tokenizer, num_beams=4, device='cpu'):
26
  summary_ids = model.generate(inputs, max_length=256, num_beams=num_beams)
27
  summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
28
  return summary
29
-
 
30
  if text:
31
  re1 = summarize(model_org, tokenizer, text)
32
  re2 = summarize(model_aug, tokenizer, text)
 
26
  summary_ids = model.generate(inputs, max_length=256, num_beams=num_beams)
27
  summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
28
  return summary
29
+
30
+ text = st.text_area('Nhập tiêu đề vào đây')
31
  if text:
32
  re1 = summarize(model_org, tokenizer, text)
33
  re2 = summarize(model_aug, tokenizer, text)