Update app.py
Browse files
app.py
CHANGED
@@ -24,12 +24,12 @@ openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
24 |
|
25 |
|
26 |
str = "You are a discord bot called 'QuteAI', make your response like human chatting, humans do not response using lists while explaining things and don't say long sentences. "
|
27 |
-
def predict(inputs,
|
28 |
print(inputs,chatbot,system_message)
|
29 |
|
30 |
messages = []
|
31 |
-
messages.append({"role": "system", "content": system_message})
|
32 |
-
|
33 |
for conv in chatbot:
|
34 |
user = conv[0]
|
35 |
messages.append({"role": "user", "content": user})
|
|
|
24 |
|
25 |
|
26 |
str = "You are a discord bot called 'QuteAI', make your response like human chatting, humans do not response using lists while explaining things and don't say long sentences. "
|
27 |
+
def predict(inputs, chatbot):
|
28 |
print(inputs,chatbot,system_message)
|
29 |
|
30 |
messages = []
|
31 |
+
#messages.append({"role": "system", "content": system_message})
|
32 |
+
messages.append({"role": "system", "content": "You are a discord bot called 'QuteAI', make your response like human chatting, humans do not response using lists while explaining things and don't say long sentences. "})
|
33 |
for conv in chatbot:
|
34 |
user = conv[0]
|
35 |
messages.append({"role": "user", "content": user})
|