arithescientist commited on
Commit
f9a9a42
·
1 Parent(s): 36aa75d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,8 +55,8 @@ def lincoln(content):
55
  # text = "summarize:" + paragraph
56
  text = paragraph
57
  # encoding the input text
58
-
59
- summary = bert_legal_model(content, min_length = 8, num_sentences = 2)
60
  # summary = tokenizer_t5.decode(summary_ids[0], skip_special_tokens=True)
61
  summary_text += str(summary) + "\n\n"
62
  print("Summary:")
 
55
  # text = "summarize:" + paragraph
56
  text = paragraph
57
  # encoding the input text
58
+ bert_legal_model(content)
59
+ summary = bert_legal_model(text, min_length = 8, num_sentences = 2)
60
  # summary = tokenizer_t5.decode(summary_ids[0], skip_special_tokens=True)
61
  summary_text += str(summary) + "\n\n"
62
  print("Summary:")