Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from huggingface_hub import InferenceClient
|
|
| 4 |
client = InferenceClient("Qwen/Qwen2.5-7B-Instruct")
|
| 5 |
|
| 6 |
def respond(message, history):
|
| 7 |
-
messages = [{"role": "system", "content": "You
|
| 8 |
|
| 9 |
for user_msg, bot_msg in history:
|
| 10 |
messages.append({"role": "user", "content": user_msg})
|
|
|
|
| 4 |
client = InferenceClient("Qwen/Qwen2.5-7B-Instruct")
|
| 5 |
|
| 6 |
def respond(message, history):
|
| 7 |
+
messages = [{"role": "system", "content": "You're really good at recommending books based on what genres and tropes the user likes. Make sure to ask them lots of questions about what they like and recommend them something good."}]
|
| 8 |
|
| 9 |
for user_msg, bot_msg in history:
|
| 10 |
messages.append({"role": "user", "content": user_msg})
|