Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,5 +7,10 @@ def echo(message, history):
|
|
| 7 |
def yes_no(message, history):
|
| 8 |
responses = ["Yes", "No"]
|
| 9 |
return (random.choice(responses))
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
chatbot.launch()
|
|
|
|
| 7 |
def yes_no(message, history):
|
| 8 |
responses = ["Yes", "No"]
|
| 9 |
return (random.choice(responses))
|
| 10 |
+
|
| 11 |
+
def eightBall(message, history):
|
| 12 |
+
responses1 = ["Probably", "Ask me later", "Nah", "I dont know, why ask me?", "Definitely no", "It sounds right"]
|
| 13 |
+
return (random.choice(responses1))
|
| 14 |
+
|
| 15 |
+
chatbot = gr.ChatInterface(eightBall, description = "Cool chatbot!", type = "messages", title = "Yes/No", theme = "earneleh/paris")
|
| 16 |
chatbot.launch()
|