Spaces:
Runtime error
Runtime error
Commit
·
f9a9a42
1
Parent(s):
36aa75d
Update app.py
Browse files
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(
|
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:")
|