Spaces:
Sleeping
Sleeping
Update app.py
Browse fileschanged echo to respond yes or no randomly
app.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
| 4 |
chatbot = gr.ChatInterface(echo)
|
| 5 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
+
|
| 4 |
+
def respond(message, history):
|
| 5 |
+
return random.choice(["Yes", "No"])
|
| 6 |
chatbot = gr.ChatInterface(echo)
|
| 7 |
chatbot.launch()
|