Spaces:
Sleeping
Sleeping
added more responses and changed the title
Browse files
app.py
CHANGED
|
@@ -2,10 +2,10 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def echo(message, history):
|
| 5 |
-
choices = ["yes", "no"]
|
| 6 |
new = random.choice(choices)
|
| 7 |
return new
|
| 8 |
|
| 9 |
-
chatbot = gr.ChatInterface(echo, type = "messages", title = "
|
| 10 |
|
| 11 |
chatbot.launch()
|
|
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def echo(message, history):
|
| 5 |
+
choices = ["yes", "no", "better not tell you now", "without a doubt", "very doubtful", "cannot predict now", "you may rely on it", "don't count on it", "reply hazy, try again"]
|
| 6 |
new = random.choice(choices)
|
| 7 |
return new
|
| 8 |
|
| 9 |
+
chatbot = gr.ChatInterface(echo, type = "messages", title = "Magic 8 Ball")
|
| 10 |
|
| 11 |
chatbot.launch()
|