Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,8 @@ import random
|
|
| 4 |
#Importing gradio for chatbox and random for responses
|
| 5 |
|
| 6 |
def respond_yes_or_no(message, history):
|
| 7 |
-
responses = ["Yes", "No"]
|
| 8 |
return random.choice(responses)
|
| 9 |
|
| 10 |
-
chatbot = gr.ChatInterface(respond_yes_or_no, type = "messages", title = "
|
| 11 |
chatbot.launch()
|
|
|
|
| 4 |
#Importing gradio for chatbox and random for responses
|
| 5 |
|
| 6 |
def respond_yes_or_no(message, history):
|
| 7 |
+
responses = ["Yes", "No", "All Signs Point to Yes", "Very doubtful"]
|
| 8 |
return random.choice(responses)
|
| 9 |
|
| 10 |
+
chatbot = gr.ChatInterface(respond_yes_or_no, type = "messages", theme='d8ahazard/material_design_rd', title = "Magic 8 Ball Bot", description = "This chatbox is a magic 8 ball")
|
| 11 |
chatbot.launch()
|