KiraPGR commited on
Commit
7424caa
·
verified ·
1 Parent(s): a2b798f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -23,10 +23,11 @@ openai.api_key = os.getenv("OPENAI_API_KEY")
23
  # Import things that are needed generically from langchain
24
 
25
 
26
- def predict(inputs, chatbot):
27
 
28
  messages = []
29
- 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. "})
 
30
  for conv in chatbot:
31
  user = conv[0]
32
  messages.append({"role": "user", "content": user})
 
23
  # Import things that are needed generically from langchain
24
 
25
 
26
+ def predict(inputs, chatbot, system_message):
27
 
28
  messages = []
29
+ messages.append({"role": "system", "content": system_message})
30
+ #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. "})
31
  for conv in chatbot:
32
  user = conv[0]
33
  messages.append({"role": "user", "content": user})