Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,10 +2,10 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def random_response(message,history):
|
| 5 |
-
response_options = ["yes", "no"]
|
| 6 |
return random.choice(response_options)
|
| 7 |
|
| 8 |
|
| 9 |
-
chatbot = gr.ChatInterface(random_response, title = "
|
| 10 |
|
| 11 |
chatbot.launch()
|
|
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def random_response(message,history):
|
| 5 |
+
response_options = ["yes", "no", "maybe", "try again later.", "most definitely.", "definitely no.", "you choose your own destiny."]
|
| 6 |
return random.choice(response_options)
|
| 7 |
|
| 8 |
|
| 9 |
+
chatbot = gr.ChatInterface(random_response, title = "Magic 8 Ball Chatbot")
|
| 10 |
|
| 11 |
chatbot.launch()
|