test
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ summarizer = pipeline("summarization", model=model, tokenizer=tokenizer)
|
|
13 |
|
14 |
def summarization(News):
|
15 |
result = summarizer(News, min_length=50, max_length=150)
|
16 |
-
return result["summary_text"]
|
17 |
|
18 |
if __name__ == '__main__':
|
19 |
app = gr.Interface(
|
|
|
13 |
|
14 |
def summarization(News):
|
15 |
result = summarizer(News, min_length=50, max_length=150)
|
16 |
+
return result[0]["summary_text"]
|
17 |
|
18 |
if __name__ == '__main__':
|
19 |
app = gr.Interface(
|