Spaces:
Running
Running
Initial Version
Browse files
app.py
CHANGED
@@ -3,8 +3,9 @@ from transformers_js_py import pipeline
|
|
3 |
|
4 |
pipe = await pipeline("summarization", model="facebook/bart-large-cnn")
|
5 |
|
|
|
6 |
async def process(text):
|
7 |
-
return await pipe(
|
8 |
|
9 |
demo = gr.Interface(fn=process, inputs="text", outputs="json")
|
10 |
|
|
|
3 |
|
4 |
pipe = await pipeline("summarization", model="facebook/bart-large-cnn")
|
5 |
|
6 |
+
|
7 |
async def process(text):
|
8 |
+
return await pipe(ARTICLE, max_length=65, min_length=30, do_sample=False)
|
9 |
|
10 |
demo = gr.Interface(fn=process, inputs="text", outputs="json")
|
11 |
|