Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ summarizer = pipeline('summarization',
|
|
| 10 |
def translate(text):
|
| 11 |
text = text.replace('"', '"')
|
| 12 |
text = text.replace(''', "'")
|
| 13 |
-
text = text.replace('&'
|
| 14 |
result =summarizer(text, min_lenght=180, truncation=True)
|
| 15 |
return result[0]['summary_text']
|
| 16 |
|
|
|
|
| 10 |
def translate(text):
|
| 11 |
text = text.replace('"', '"')
|
| 12 |
text = text.replace(''', "'")
|
| 13 |
+
text = text.replace('&', "&")
|
| 14 |
result =summarizer(text, min_lenght=180, truncation=True)
|
| 15 |
return result[0]['summary_text']
|
| 16 |
|