madankn79 commited on
Commit
f96da32
·
1 Parent(s): c7d5d4f

Initial Version

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -5,8 +5,9 @@ pipe = pipeline("summarization", model="facebook/bart-large-cnn")
5
 
6
 
7
  async def process(text):
8
- return pipe(text, max_length=65, min_length=30, do_sample=False)
9
 
10
  demo = gr.Interface(fn=process, inputs="text", outputs="json")
11
 
12
- demo.launch()
 
 
5
 
6
 
7
  async def process(text):
8
+ return pipe(text, max_length=65, min_length=10, do_sample=False)
9
 
10
  demo = gr.Interface(fn=process, inputs="text", outputs="json")
11
 
12
+ demo.launch(share=True)
13
+