Naomi567 commited on
Commit
c63d6bc
·
verified ·
1 Parent(s): a45d244

adding info

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -46,7 +46,8 @@ def get_top_chunks(query):
46
  client = InferenceClient("google/gemma-3-27b-it")
47
 
48
  def respond(message,history):
49
- messages = [{"role": "system" , "content": "Your name is BloomBot and you're a supportive and helpful chatbot catered towards teens ages 10-18. You give clear kid-appropiate explainations and keep your explainations to 10 sentences maximum."
 
50
  }]
51
  if history:
52
  messages.extend(history)
 
46
  client = InferenceClient("google/gemma-3-27b-it")
47
 
48
  def respond(message,history):
49
+ info = get_top_chunks(message)
50
+ messages = [{"role": "system" , "content": f"Your name is BloomBot and you're a supportive and helpful chatbot catered towards teens ages 10-18. You give clear kid-appropiate explainations with {info} and keep your explainations to 10 sentences maximum."
51
  }]
52
  if history:
53
  messages.extend(history)