TCares commited on
Commit
bc634f5
·
verified ·
1 Parent(s): daedda1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ visit_webpage = VisitWebpageTool()
34
 
35
 
36
  # 2. Text Summarizer
37
- summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
38
  def text_summarizer(text: str) -> str:
39
  try:
40
  summary = summarizer(text, max_length=1000, min_length=20, do_sample=False)
 
34
 
35
 
36
  # 2. Text Summarizer
37
+ summarizer = pipeline("summarization", model="Falconsai/text_summarization")
38
  def text_summarizer(text: str) -> str:
39
  try:
40
  summary = summarizer(text, max_length=1000, min_length=20, do_sample=False)