smriti-m commited on
Commit
e67b287
·
verified ·
1 Parent(s): 57bc067

Update app.py

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 = clinet.chat_completion(
17
  messages, max_tokens = 100
18
  )
19
- return response['choices'][0]['messages']['content'].strip()
20
 
21
  chatbot = gr.ChatInterface(respond, type="messages")
22
  chatbot.launch()
 
16
  response = clinet.chat_completion(
17
  messages, max_tokens = 100
18
  )
19
+ return response['choices'][0]['message']['content'].strip()
20
 
21
  chatbot = gr.ChatInterface(respond, type="messages")
22
  chatbot.launch()