Mishmosh commited on
Commit
8d77f96
·
1 Parent(s): a0807ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -252,7 +252,7 @@ print(summarized_text)
252
  # the aim of this section of code is to get a summary of just one sentence by summarizing the summary all while the summary is longer than one sentence.
253
  # unfortunately, I tried many many models and none of them actually summarize the text to as short as one sentence.
254
  #I had searched for ways to fine tune the summarization model to specify that the summarization should be done in just one sentence but did not find a way to implement it
255
- from transformers import pipeline
256
  summarized_text_list_list=summarized_text_list['summary_text']
257
  summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
258
  #print(summarizer)
 
252
  # the aim of this section of code is to get a summary of just one sentence by summarizing the summary all while the summary is longer than one sentence.
253
  # unfortunately, I tried many many models and none of them actually summarize the text to as short as one sentence.
254
  #I had searched for ways to fine tune the summarization model to specify that the summarization should be done in just one sentence but did not find a way to implement it
255
+ #from transformers import pipeline
256
  summarized_text_list_list=summarized_text_list['summary_text']
257
  summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
258
  #print(summarizer)