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