Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,5 +5,5 @@ def echo(message, history):
|
|
| 5 |
choices = ["yes", "no"]
|
| 6 |
response = random.choice(choices)
|
| 7 |
return response
|
| 8 |
-
chatbot = gr.ChatInterface(echo, type = "messages", examples = ["
|
| 9 |
chatbot.launch()
|
|
|
|
| 5 |
choices = ["yes", "no"]
|
| 6 |
response = random.choice(choices)
|
| 7 |
return response
|
| 8 |
+
chatbot = gr.ChatInterface(echo, type = "messages", examples = [{"who":"user","what":"Hello!"},{"who":"ai","what":"Hi! How are you doing?"}], title = "echo bot")
|
| 9 |
chatbot.launch()
|