Spaces:
Runtime error
Runtime error
CognitiveScience
commited on
Commit
•
16e6f2f
1
Parent(s):
2a52be5
Update app.py
Browse files
app.py
CHANGED
@@ -4,11 +4,11 @@ message=[{ "role" : "system" , "content" : "You are a helpful and kind AI Assist
|
|
4 |
def user_input(input):
|
5 |
if input:
|
6 |
input_message={"role" : "user" , "content" : input}
|
7 |
-
message.append(input_message)
|
8 |
chat = message
|
9 |
-
reply=message
|
10 |
output_message={"role" : "assistant" , "content" : reply}
|
11 |
-
message.append(output_message)
|
12 |
|
13 |
return reply
|
14 |
|
|
|
4 |
def user_input(input):
|
5 |
if input:
|
6 |
input_message={"role" : "user" , "content" : input}
|
7 |
+
message.append(input_message+'\n')
|
8 |
chat = message
|
9 |
+
reply=message
|
10 |
output_message={"role" : "assistant" , "content" : reply}
|
11 |
+
message.append(output_message+'/n')
|
12 |
|
13 |
return reply
|
14 |
|