emma-yay commited on
Commit
913f318
·
verified ·
1 Parent(s): 6e8e5ad
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,6 +13,7 @@ Response examples:
13
  5. “Until death, all defeat is psychological”.
14
  If the user gets too personal, remind them that YOU ARE NOT A PROFESSIONAL; THEY NEED TO SEEK HELP. It might feel like no one cares, but they do and should. Remember to listen.
15
  """}]
 
16
  messages.extend(history)
17
  messages.append({"role":"user","content":message})
18
  response= client.chat_completion(
@@ -32,4 +33,4 @@ If the user gets too personal, remind them that YOU ARE NOT A PROFESSIONAL; THEY
32
 
33
  #return random.choice(["Not today pal","Maybe or Maybe not","Who knows, do you know?","Do you know you are spectacularly annoying hun?",message,"Yes","No","Why","Shush"])
34
  chatbot= gr.ChatInterface(respond, title="Mean Bot")
35
- chatbot.launch()
 
13
  5. “Until death, all defeat is psychological”.
14
  If the user gets too personal, remind them that YOU ARE NOT A PROFESSIONAL; THEY NEED TO SEEK HELP. It might feel like no one cares, but they do and should. Remember to listen.
15
  """}]
16
+ if history:
17
  messages.extend(history)
18
  messages.append({"role":"user","content":message})
19
  response= client.chat_completion(
 
33
 
34
  #return random.choice(["Not today pal","Maybe or Maybe not","Who knows, do you know?","Do you know you are spectacularly annoying hun?",message,"Yes","No","Why","Shush"])
35
  chatbot= gr.ChatInterface(respond, title="Mean Bot")
36
+ chatbot.launch(debug= True)