Spaces:
Runtime error
Runtime error
Fixed errors
Browse files
app.py
CHANGED
|
@@ -3,7 +3,10 @@ import random
|
|
| 3 |
|
| 4 |
def echo(message, history):
|
| 5 |
choices = ["yes", "no"]
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
chatbot = gr.ChatInterface(echo, type = "messages")
|
| 9 |
|
|
|
|
| 3 |
|
| 4 |
def echo(message, history):
|
| 5 |
choices = ["yes", "no"]
|
| 6 |
+
|
| 7 |
+
randomMessage = random.choice(choices)
|
| 8 |
+
|
| 9 |
+
return randomMessage
|
| 10 |
|
| 11 |
chatbot = gr.ChatInterface(echo, type = "messages")
|
| 12 |
|