adding info
Browse files
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 |
-
|
|
|
|
| 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)
|