c4r-sty commited on
Commit
48a09ca
·
verified ·
1 Parent(s): 853236c

fix error to updated chatbox

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def respond(message, history):
27
  max_tokens = 100
28
  )
29
 
30
- return random.choice[0].message.content.strip()
31
 
32
 
33
  chatbot = gr.ChatInterface(respond)
 
27
  max_tokens = 100
28
  )
29
 
30
+ return response.choices[0].message.content.strip()
31
 
32
 
33
  chatbot = gr.ChatInterface(respond)