Spaces:
Runtime error
Runtime error
try
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
def random(message, history):
|
| 4 |
choices = ["yes", "no"]
|
| 5 |
-
|
| 6 |
-
return
|
| 7 |
chatbot = gr.ChatInterface(random, type = "messages")
|
| 8 |
chatbot.launch()
|
|
|
|
| 2 |
import random
|
| 3 |
def random(message, history):
|
| 4 |
choices = ["yes", "no"]
|
| 5 |
+
random_element = random.choice(choices)
|
| 6 |
+
return random_element
|
| 7 |
chatbot = gr.ChatInterface(random, type = "messages")
|
| 8 |
chatbot.launch()
|