Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
|
@@ -10,8 +10,8 @@ response=""
|
|
| 10 |
|
| 11 |
#defining role of AI and user
|
| 12 |
def respond(message,history):
|
| 13 |
-
messages = [{"role": "system", "content": system_message}]
|
| 14 |
system_message="You are acting like a comforting, guiding parent helping their child navigate academia."
|
|
|
|
| 15 |
|
| 16 |
if history:
|
| 17 |
messages.extend(history) #keep adding history
|
|
|
|
| 10 |
|
| 11 |
#defining role of AI and user
|
| 12 |
def respond(message,history):
|
|
|
|
| 13 |
system_message="You are acting like a comforting, guiding parent helping their child navigate academia."
|
| 14 |
+
messages = [{"role": "system", "content": system_message}]
|
| 15 |
|
| 16 |
if history:
|
| 17 |
messages.extend(history) #keep adding history
|