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