madankn79 commited on
Commit
1eb835e
·
1 Parent(s): 15780a5

Initial Version

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ pipe = 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
 
 
5
 
6
 
7
  async def process(text):
8
+ return await pipe(text, max_length=65, min_length=30, do_sample=False)
9
 
10
  demo = gr.Interface(fn=process, inputs="text", outputs="json")
11