Spaces:
Sleeping
Sleeping
kz209
commited on
Commit
•
d0aeddf
1
Parent(s):
143b62d
update
Browse files
pages/summarization_playground.py
CHANGED
@@ -28,10 +28,7 @@ Back in Boston, Kidd is going to rely on Lively even more. He'll play close to 3
|
|
28 |
}
|
29 |
|
30 |
def generate_answer(sources, model, model_name, prompt):
|
31 |
-
|
32 |
-
|
33 |
-
meta_prompt = prompt
|
34 |
-
content = meta_prompt.format(sources=sources)
|
35 |
answer = model[model_name].gen(content)
|
36 |
|
37 |
return answer
|
|
|
28 |
}
|
29 |
|
30 |
def generate_answer(sources, model, model_name, prompt):
|
31 |
+
content = prompt + '\n' + sources
|
|
|
|
|
|
|
32 |
answer = model[model_name].gen(content)
|
33 |
|
34 |
return answer
|