Spaces:
Sleeping
Sleeping
it should work
Browse files
app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
-
def
|
| 5 |
choices = ["yes", "no"]
|
| 6 |
random_choices = random.choice(choices)
|
| 7 |
return random_choices
|
| 8 |
|
| 9 |
-
chatbot = gr.ChatInterface(
|
| 10 |
|
| 11 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
+
def random_message(message, history):
|
| 5 |
choices = ["yes", "no"]
|
| 6 |
random_choices = random.choice(choices)
|
| 7 |
return random_choices
|
| 8 |
|
| 9 |
+
chatbot = gr.ChatInterface(random_message, type = "messages")
|
| 10 |
|
| 11 |
chatbot.launch()
|