ishaandtotoro commited on
Commit
9d4ae10
·
verified ·
1 Parent(s): aade108

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -14,14 +14,10 @@ def respond(message, history):
14
 
15
 
16
  messages = [{'role':'system', 'content': 'You are a mean chatbot'}]
17
-
18
-
19
-
20
  if history:
21
  messages.extend(history)
22
-
23
-
24
-
25
  response = client.chat_completion(messages, max_tokens=100)
26
 
27
  return response['choice'][0]['message']['content'].strip()
 
14
 
15
 
16
  messages = [{'role':'system', 'content': 'You are a mean chatbot'}]
17
+
 
 
18
  if history:
19
  messages.extend(history)
20
+
 
 
21
  response = client.chat_completion(messages, max_tokens=100)
22
 
23
  return response['choice'][0]['message']['content'].strip()