Spaces:
Sleeping
Sleeping
Updated the choices responses
Browse files
app.py
CHANGED
|
@@ -2,11 +2,11 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def echo(message, history):
|
| 5 |
-
choices = ["yes", "no"]
|
| 6 |
#use random to select one of these choices
|
| 7 |
random_message = random.choice(choices)
|
| 8 |
return random_message
|
| 9 |
|
| 10 |
-
chatbot = gr.ChatInterface(echo, type = "messages", theme = "
|
| 11 |
|
| 12 |
chatbot.launch()
|
|
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def echo(message, history):
|
| 5 |
+
choices = ["yes", "ummmmm no no no", "sure", ".....I think you need to rethink your choices", "you deserve a sweet treat for that"]
|
| 6 |
#use random to select one of these choices
|
| 7 |
random_message = random.choice(choices)
|
| 8 |
return random_message
|
| 9 |
|
| 10 |
+
chatbot = gr.ChatInterface(echo, type = "messages", theme = "soft")
|
| 11 |
|
| 12 |
chatbot.launch()
|