Spaces:
Sleeping
Sleeping
arithescientist
commited on
Commit
·
132254a
1
Parent(s):
cf3e244
Update app.py
Browse files
app.py
CHANGED
@@ -68,9 +68,9 @@ def pdf(file):
|
|
68 |
|
69 |
summary = bert_legal_model(text, min_length = 8, ratio = 0.05)
|
70 |
# summary = tokenizer_t5.decode(summary_ids[0], skip_special_tokens=True)
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
|
75 |
content2 = content.replace('\n',' ')
|
76 |
content2 = content2.replace('\t','')
|
|
|
68 |
|
69 |
summary = bert_legal_model(text, min_length = 8, ratio = 0.05)
|
70 |
# summary = tokenizer_t5.decode(summary_ids[0], skip_special_tokens=True)
|
71 |
+
summary_text += str(summary) + "\n\n"
|
72 |
+
print("Summary:")
|
73 |
+
print(summary)
|
74 |
|
75 |
content2 = content.replace('\n',' ')
|
76 |
content2 = content2.replace('\t','')
|