Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|