Ingrid-47 commited on
Commit
312b957
·
verified ·
1 Parent(s): 18d1567

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def respond(message, history):
23
  messages, max_tokens=100
24
  )
25
 
26
- return response['choices'][0]['messages']['content'].strip()
27
 
28
  chatbot = gr.ChatInterface(respond, type="messages")
29
  chatbot.launch()
 
23
  messages, max_tokens=100
24
  )
25
 
26
+ return response['choices'][0]['message']['content'].strip()
27
 
28
  chatbot = gr.ChatInterface(respond, type="messages")
29
  chatbot.launch()