Spaces:
Runtime error
Runtime error
Eunchan Lee
commited on
Commit
·
a585275
1
Parent(s):
ce63843
dsada
Browse files
app.py
CHANGED
@@ -41,8 +41,7 @@ def load_zeroshot_classifier():
|
|
41 |
|
42 |
def get_summarizer(summarizer, sequence:str, maximum_tokens:int, minimum_tokens:int):
|
43 |
output = summarizer(sequence, num_beams=4, max_length=maximum_tokens, min_length=minimum_tokens, do_sample=False)
|
44 |
-
|
45 |
-
return output[0].get('summary_text')
|
46 |
|
47 |
|
48 |
|
|
|
41 |
|
42 |
def get_summarizer(summarizer, sequence:str, maximum_tokens:int, minimum_tokens:int):
|
43 |
output = summarizer(sequence, num_beams=4, max_length=maximum_tokens, min_length=minimum_tokens, do_sample=False)
|
44 |
+
return output[0].get('summary_text')
|
|
|
45 |
|
46 |
|
47 |
|