emma-yay commited on
Commit
07d28d0
·
verified ·
1 Parent(s): aeb3e8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,8 +27,8 @@ If the user gets too personal, remind them that YOU ARE NOT A PROFESSIONAL; THEY
27
  for messagge in stream:
28
  token=message.choices[0].delta.content
29
  if response:
30
- response+=token
31
- yield repond
32
  #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"])
33
  chatbot= gr.ChatInterface(respond, title="Mean Bot")
34
  chatbot.launch()
 
27
  for messagge in stream:
28
  token=message.choices[0].delta.content
29
  if response:
30
+ response+=token
31
+ yield repond
32
  #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"])
33
  chatbot= gr.ChatInterface(respond, title="Mean Bot")
34
  chatbot.launch()