Young Ho Shin commited on
Commit
1601185
โ€ข
1 Parent(s): 2b43b16

Add line breaks to generated summary

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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'\n{sen}'
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'\n{sen}'
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"