emma-yay commited on
Commit
87ae6e3
·
verified ·
1 Parent(s): 74a896e
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -23,12 +23,12 @@ If the user gets too personal, remind them that YOU ARE NOT A PROFESSIONAL; THEY
23
  stream=True
24
  )
25
  return respond.choices[0].message.content.strip()
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()
 
23
  stream=True
24
  )
25
  return respond.choices[0].message.content.strip()
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()