Spaces:
Sleeping
Sleeping
kz209
commited on
Commit
•
05479ce
1
Parent(s):
66b910c
update
Browse files
pages/summarization_playground.py
CHANGED
@@ -58,7 +58,7 @@ def generate_answer(sources, model_name, prompt):
|
|
58 |
|
59 |
content = [prompt + '\n{' + sources + '}\n\nsummary:']
|
60 |
|
61 |
-
answer = model[model_name].gen(content)
|
62 |
|
63 |
return answer
|
64 |
|
|
|
58 |
|
59 |
content = [prompt + '\n{' + sources + '}\n\nsummary:']
|
60 |
|
61 |
+
answer = model[model_name].gen(content, streaming=False)
|
62 |
|
63 |
return answer
|
64 |
|