Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,14 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
-
|
|
|
|
| 5 |
def echo(message, history):
|
| 6 |
choices = ["Ask me later", "Not today, sweetie", "One day we'll know", "Indeed!", "Nahhhh the vibes off cuh", "Cro don't do it", "YES GET IT GURL"]
|
| 7 |
value = random.choice(choices)
|
| 8 |
return value
|
| 9 |
|
| 10 |
chatbot = gr.ChatInterface(echo, type = "messages")
|
|
|
|
| 11 |
|
| 12 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
+
|
| 5 |
+
|
| 6 |
def echo(message, history):
|
| 7 |
choices = ["Ask me later", "Not today, sweetie", "One day we'll know", "Indeed!", "Nahhhh the vibes off cuh", "Cro don't do it", "YES GET IT GURL"]
|
| 8 |
value = random.choice(choices)
|
| 9 |
return value
|
| 10 |
|
| 11 |
chatbot = gr.ChatInterface(echo, type = "messages")
|
| 12 |
+
chatbot.print("Ask a yes or no question!")
|
| 13 |
|
| 14 |
chatbot.launch()
|