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