MicGuest commited on
Commit
21b3d23
·
unverified ·
1 Parent(s): 7466f57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ from transformers import pipeline
2
  import gradio as gr
3
  from gradio.mix import Parallel, Series
4
 
5
- io1 = gr.Interface.load('huggingface/sshleifer/distilbart-cnn-12-6')
6
  io2 = gr.Interface.load("huggingface/facebook/bart-large-cnn")
7
  io3 = gr.Interface.load("huggingface/google/pegasus-xsum")
8
 
@@ -41,4 +41,4 @@ iface = Parallel(io1, io2, io3,
41
  examples=sample, #replace "sample" with directory to let gradio scan through those files and give you the text
42
  inputs = gr.inputs.Textbox(lines = 10, label="Text"))
43
 
44
- iface.launch(inline = False,share=True)
 
2
  import gradio as gr
3
  from gradio.mix import Parallel, Series
4
 
5
+ io1 = gr.Interface.load("huggingface/sshleifer/distilbart-cnn-12-6")
6
  io2 = gr.Interface.load("huggingface/facebook/bart-large-cnn")
7
  io3 = gr.Interface.load("huggingface/google/pegasus-xsum")
8
 
 
41
  examples=sample, #replace "sample" with directory to let gradio scan through those files and give you the text
42
  inputs = gr.inputs.Textbox(lines = 10, label="Text"))
43
 
44
+ iface.launch(inline = False)