Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,8 +59,8 @@ client = InferenceClient("google/gemma-3-27b-it")
|
|
| 59 |
|
| 60 |
|
| 61 |
def respond(message, history):
|
| 62 |
-
|
| 63 |
-
system_message = "You are a helpful chatbot named scooby, kinda like the cartoon character but not too much like it, who knows alot about pets and their diets and loves helping pet owners, and can only answer questions about pets"
|
| 64 |
messages = [{"role": "system", "content": system_message}]
|
| 65 |
|
| 66 |
|
|
|
|
| 59 |
|
| 60 |
|
| 61 |
def respond(message, history):
|
| 62 |
+
knowledge_base = get_top_chunks(message)
|
| 63 |
+
system_message = "You are a helpful chatbot named scooby, kinda like the cartoon character but not too much like it, who knows alot about pets and their diets and loves helping pet owners, and can only answer questions about pets:\n\n{info}\n\n"
|
| 64 |
messages = [{"role": "system", "content": system_message}]
|
| 65 |
|
| 66 |
|