momo commited on
Commit
eb33260
·
1 Parent(s): 5d93f96
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ def summarization(News, Summary):
17
 
18
  for result in summarizer(News):
19
  print(result)
20
- return result
21
 
22
  if __name__ == '__main__':
23
 
@@ -25,7 +25,7 @@ if __name__ == '__main__':
25
  app = gr.Interface(
26
  fn=summarization,
27
  inputs=gr.inputs.Textbox(lines=10, label="News"),
28
- outputs=gr.outputs.Textbox(label="Summary"),
29
  title="한국어 뉴스 요약 생성기",
30
  description="Korean News Summary Generator"
31
  )
 
17
 
18
  for result in summarizer(News):
19
  print(result)
20
+ return result[0]["summary_text"]
21
 
22
  if __name__ == '__main__':
23
 
 
25
  app = gr.Interface(
26
  fn=summarization,
27
  inputs=gr.inputs.Textbox(lines=10, label="News"),
28
+ outputs=gr.outputs.Textbox(label="summary_text"),
29
  title="한국어 뉴스 요약 생성기",
30
  description="Korean News Summary Generator"
31
  )