raul-padua commited on
Commit
94d2910
·
1 Parent(s): 48d6983

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,7 +6,8 @@ get_completion = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6"
6
  def summarize(input):
7
  output = get_completion(input)
8
  return output[0]['summary_text']
9
-
 
10
  demo = gr.Interface(fn=summarize,
11
  inputs=[gr.Textbox(label="Text to summarize", lines=6)],
12
  outputs=[gr.Textbox(label="Result", lines=3)],
 
6
  def summarize(input):
7
  output = get_completion(input)
8
  return output[0]['summary_text']
9
+
10
+ gr.close_all()
11
  demo = gr.Interface(fn=summarize,
12
  inputs=[gr.Textbox(label="Text to summarize", lines=6)],
13
  outputs=[gr.Textbox(label="Result", lines=3)],