Spaces:
Sleeping
Sleeping
yes_or_no()
Browse files
app.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
return
|
| 7 |
|
| 8 |
chatbot = gr.ChatInterface(echo, type='messages')
|
| 9 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
|
| 4 |
+
answers = ["yes", "no"]
|
| 5 |
+
|
| 6 |
+
def yes_or_no(message,history):
|
| 7 |
+
return random.answers
|
| 8 |
|
| 9 |
chatbot = gr.ChatInterface(echo, type='messages')
|
| 10 |
chatbot.launch()
|