Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
def echo (message, history):
|
|
|
|
| 5 |
return message
|
|
|
|
| 6 |
chatbot = gr.ChatInterface(echo)
|
| 7 |
|
| 8 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
|
| 4 |
|
| 5 |
def echo (message, history):
|
| 6 |
+
choices = ('yes','no')
|
| 7 |
return message
|
| 8 |
+
choices.random()
|
| 9 |
chatbot = gr.ChatInterface(echo)
|
| 10 |
|
| 11 |
|