bakilasek commited on
Commit
ca243e2
·
verified ·
1 Parent(s): b271f4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,6 +12,6 @@ def greet(name, history):
12
  conversation.add_message({"role": "user",
13
  "content": name})
14
  conversation = chatbot(conversation)
15
- return conversation.messages[len(conversation.messages) -1]
16
 
17
  gr.ChatInterface(greet).launch()
 
12
  conversation.add_message({"role": "user",
13
  "content": name})
14
  conversation = chatbot(conversation)
15
+ return conversation.messages[len(conversation.messages) -1]['content']
16
 
17
  gr.ChatInterface(greet).launch()