magic 8
Browse files
app.py
CHANGED
|
@@ -7,11 +7,14 @@ def echo(message, history):
|
|
| 7 |
def respond_yes_no_random(message, history):
|
| 8 |
responses=["Yes", "No"]
|
| 9 |
return random.choice(responses)
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
chatbot.launch()
|
| 17 |
|
|
|
|
| 7 |
def respond_yes_no_random(message, history):
|
| 8 |
responses=["Yes", "No"]
|
| 9 |
return random.choice(responses)
|
| 10 |
+
|
| 11 |
+
def magic8(message, history):
|
| 12 |
+
responses=["Yes", "No", "Maybe", "Without a doubt", "Most likely", "Try again", "Not sure","Very doubtful"]
|
| 13 |
+
return random.choice(responses)
|
| 14 |
+
|
| 15 |
+
chatbot = gr.ChatInterface(magic8,
|
| 16 |
+
type= "messages", title = "8 ball",
|
| 17 |
+
description = "its random omg")
|
| 18 |
|
| 19 |
chatbot.launch()
|
| 20 |
|