Alisa-Leung commited on
Commit
267d7a3
·
verified ·
1 Parent(s): e00a58f

so it hates objects

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def respond(message, history):
16
  response = ""
17
  for msg in client.chat_completion(messages, max_tokens=200, temperature=1, top_p=0.5):
18
  response += msg
19
- yield response.choices[0].message.content.strip()
20
 
21
  chatbot = gr.ChatInterface(fn=respond, title="Magic 8 Ball", description="Discover your fortune...", editable=True)
22
  chatbot.launch()
 
16
  response = ""
17
  for msg in client.chat_completion(messages, max_tokens=200, temperature=1, top_p=0.5):
18
  response += msg
19
+ yield response.strip()
20
 
21
  chatbot = gr.ChatInterface(fn=respond, title="Magic 8 Ball", description="Discover your fortune...", editable=True)
22
  chatbot.launch()