Spaces:
Sleeping
Sleeping
Strip the output texts
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ summarizer = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6")
|
|
6 |
|
7 |
|
8 |
def summarize_function(texts):
|
9 |
-
return summarizer(texts)[0]["summary_text"] # type: ignore
|
10 |
|
11 |
|
12 |
gradio_interface = gradio.Interface(
|
|
|
6 |
|
7 |
|
8 |
def summarize_function(texts):
|
9 |
+
return summarizer(texts)[0]["summary_text"].strip() # type: ignore
|
10 |
|
11 |
|
12 |
gradio_interface = gradio.Interface(
|