Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|