Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def genarate_summary(article):
|
|
53 |
no_repeat_ngram_size=3
|
54 |
)
|
55 |
|
56 |
-
return tokenizer.decode(outputs[0], skip_special_tokens=True)
|
57 |
|
58 |
# Set up Gradio Interface
|
59 |
iface = gr.Interface(
|
|
|
53 |
no_repeat_ngram_size=3
|
54 |
)
|
55 |
|
56 |
+
return remove_incomplete_sentence(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
57 |
|
58 |
# Set up Gradio Interface
|
59 |
iface = gr.Interface(
|