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