emma-yay commited on
Commit
9fc4c65
·
verified ·
1 Parent(s): 2081723
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -26,9 +26,9 @@ If the user gets too personal, remind them that YOU ARE NOT A PROFESSIONAL; THEY
26
  respond= ""
27
  for messagge in stream:
28
  token=message.choices[0].delta.content
29
- if respond:
30
- respond+=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()
 
26
  respond= ""
27
  for messagge in stream:
28
  token=message.choices[0].delta.content
29
+ if respond:
30
+ respond+=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()