nickmuchi commited on
Commit
6256cf1
1 Parent(s): 43f270e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -422,7 +422,7 @@ if summarize:
422
  text="Loading Facebook-Bart Model and Extracting summary. This might take a few seconds depending on the length of your text..."
423
  ):
424
  summarizer_model = facebook_model()
425
- summarized_text = summarizer_model(text_to_summarize, max_length=max_len, min_length=min_len,clean_up_tokenization_spaces=True,no_repeat_ngram_size=4)
426
  summarized_text = ' '.join([summ['summary_text'] for summ in summarized_text])
427
 
428
  elif model_type == "Sshleifer-DistilBart":
 
422
  text="Loading Facebook-Bart Model and Extracting summary. This might take a few seconds depending on the length of your text..."
423
  ):
424
  summarizer_model = facebook_model()
425
+ summarized_text = summarizer_model(text_to_summarize, max_length=max_len, min_length=min_len)
426
  summarized_text = ' '.join([summ['summary_text'] for summ in summarized_text])
427
 
428
  elif model_type == "Sshleifer-DistilBart":