Spaces:
Runtime error
Runtime error
Young Ho Shin
commited on
Commit
ยท
1601185
1
Parent(s):
2b43b16
Add line breaks to generated summary
Browse files
app.py
CHANGED
@@ -89,13 +89,13 @@ def interface_handler(custom_text, naver_url, choice):
|
|
89 |
# output_text += f'๋ถ์ :\n{content["subtitle"]}\n'
|
90 |
# output_text += '\n๊ฐ์:\n'
|
91 |
for sen in summary_sentences:
|
92 |
-
output_text += f'
|
93 |
return output_text
|
94 |
else:
|
95 |
output_text = ""
|
96 |
summary_sentences = create_summary(nlp, model, custom_text)
|
97 |
for sen in summary_sentences:
|
98 |
-
output_text += f'
|
99 |
return output_text
|
100 |
|
101 |
default_url = "https://n.news.naver.com/article/015/0004692703?sid=102"
|
|
|
89 |
# output_text += f'๋ถ์ :\n{content["subtitle"]}\n'
|
90 |
# output_text += '\n๊ฐ์:\n'
|
91 |
for sen in summary_sentences:
|
92 |
+
output_text += f'{sen}\n\n'
|
93 |
return output_text
|
94 |
else:
|
95 |
output_text = ""
|
96 |
summary_sentences = create_summary(nlp, model, custom_text)
|
97 |
for sen in summary_sentences:
|
98 |
+
output_text += f'{sen}\n\n'
|
99 |
return output_text
|
100 |
|
101 |
default_url = "https://n.news.naver.com/article/015/0004692703?sid=102"
|