Spaces:
Sleeping
Sleeping
shubhendu-ghosh-DS
commited on
Commit
•
8e99bfb
1
Parent(s):
e5924b8
increase min_length
Browse files
summerizer_service/summarize_text.py
CHANGED
@@ -9,5 +9,5 @@ class Summarizer:
|
|
9 |
|
10 |
def summarize_text(self, text):
|
11 |
summarizer = pipeline("summarization", model="Falconsai/text_summarization")
|
12 |
-
summary = summarizer(text, max_length=500, min_length=
|
13 |
return summary[0]['summary_text']
|
|
|
9 |
|
10 |
def summarize_text(self, text):
|
11 |
summarizer = pipeline("summarization", model="Falconsai/text_summarization")
|
12 |
+
summary = summarizer(text, max_length=500, min_length=300, do_sample=False)
|
13 |
return summary[0]['summary_text']
|