Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
def echo(message, history):
|
| 4 |
-
|
|
|
|
|
|
|
| 5 |
chatbot = gr.ChatInterface(echo, type = "messages")
|
| 6 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
|
| 4 |
def echo(message, history):
|
| 5 |
+
choices = ("yes", "no")
|
| 6 |
+
response = choices.random()
|
| 7 |
+
return response
|
| 8 |
chatbot = gr.ChatInterface(echo, type = "messages")
|
| 9 |
chatbot.launch()
|