Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ pipe = pipeline("summarization", model="Gabriel/bart-base-cnn-xsum-swe")
|
|
| 5 |
|
| 6 |
def main(in_text):
|
| 7 |
print(in_text)
|
| 8 |
-
answer = pipe(in_text, num_beams=5 ,min_length=
|
| 9 |
print(answer)
|
| 10 |
return answer[0]["summary_text"]
|
| 11 |
|
|
|
|
| 5 |
|
| 6 |
def main(in_text):
|
| 7 |
print(in_text)
|
| 8 |
+
answer = pipe(in_text, num_beams=5 ,min_length=20, max_length=120)
|
| 9 |
print(answer)
|
| 10 |
return answer[0]["summary_text"]
|
| 11 |
|