Spaces:
Sleeping
Sleeping
Added a yes or no random response
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
def random_response(message, history):
|
| 4 |
-
|
| 5 |
return random.choice(response_options)
|
| 6 |
|
| 7 |
chatbot = gr.ChatInterface(random_response)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
def random_response(message, history):
|
| 4 |
+
response_options = ["yes", "no"]
|
| 5 |
return random.choice(response_options)
|
| 6 |
|
| 7 |
chatbot = gr.ChatInterface(random_response)
|