ashimanair commited on
Commit
227b64f
·
verified ·
1 Parent(s): 70e60de

it should work

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,11 +1,11 @@
1
  import gradio as gr
2
  import random
3
 
4
- def echo(message, history):
5
  choices = ["yes", "no"]
6
  random_choices = random.choice(choices)
7
  return random_choices
8
 
9
- chatbot = gr.ChatInterface(echo, type = "message")
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()