Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ css_text = """<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.
|
|
34 |
|
35 |
# return '<div class="w3-container">' + html_text + '</div>'
|
36 |
|
37 |
-
def summarize(input_text: str,
|
38 |
|
39 |
input_length = len(tokenizer.tokenize(input_text))
|
40 |
inputs = tokenizer(input_text,
|
|
|
34 |
|
35 |
# return '<div class="w3-container">' + html_text + '</div>'
|
36 |
|
37 |
+
def summarize(input_text: str, num_beams=5) -> str:
|
38 |
|
39 |
input_length = len(tokenizer.tokenize(input_text))
|
40 |
inputs = tokenizer(input_text,
|