kz209 commited on
Commit
d0aeddf
1 Parent(s): 143b62d
Files changed (1) hide show
  1. pages/summarization_playground.py +1 -4
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
- assert "{sources}" in prompt, ValueError("No {sources} Found")
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