KiraPGR commited on
Commit
02e1f75
·
verified ·
1 Parent(s): ba8dba6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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, system_message, 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})
 
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})