Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ def text2text_summary(para):
|
|
17 |
early_stopping=True
|
18 |
)
|
19 |
|
20 |
-
|
21 |
-
|
22 |
|
23 |
para=grad.Textbox(lines=10, label="Paragraph", placeholder="Copy paragraph")
|
24 |
out=grad.Textbox(lines=1, label="Summary")
|
|
|
17 |
early_stopping=True
|
18 |
)
|
19 |
|
20 |
+
response = text2text_tkn.decode(tkn_ids[0], skip_special_tokens=True)
|
21 |
+
return response
|
22 |
|
23 |
para=grad.Textbox(lines=10, label="Paragraph", placeholder="Copy paragraph")
|
24 |
out=grad.Textbox(lines=1, label="Summary")
|