Spaces:
Sleeping
Sleeping
Initial Version
Browse files
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=
|
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 |
+
|