Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ def respond(message, history, hobby_type, age):
|
|
| 120 |
print(best_chunks)
|
| 121 |
|
| 122 |
str_chunks = "/n".join(best_chunks)
|
| 123 |
-
messages = [{'role':'system', 'content': f'You are a very kind chatbot giving people hobby suggestions to help them spend less time on their electronic devices. Make sure to be specific to {hobby_type} hobbies. You answer their questions based on ' + str_chunks + '.'}]
|
| 124 |
|
| 125 |
if history:
|
| 126 |
messages.extend(history)
|
|
|
|
| 120 |
print(best_chunks)
|
| 121 |
|
| 122 |
str_chunks = "/n".join(best_chunks)
|
| 123 |
+
messages = [{'role':'system', 'content': f'You are a very kind chatbot giving people hobby suggestions to help them spend less time on their electronic devices. Make sure to be specific to {hobby_type} hobbies and make sure they are appropriate for someone who is {age} years old. You answer their questions based on ' + str_chunks + '.'}]
|
| 124 |
|
| 125 |
if history:
|
| 126 |
messages.extend(history)
|