Sadmo commited on
Commit
70a7d86
·
verified ·
1 Parent(s): ec39b2e

Updated the name of function

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,14 +1,14 @@
1
  import gradio as gr
2
  import random
3
 
4
- def echo(message, history):
5
  choices = ["yes", "no"]
6
 
7
  randomMessage = random.choice(choices)
8
 
9
  return randomMessage
10
 
11
- chatbot = gr.ChatInterface(echo, type = "messages")
12
 
13
  chatbot.launch()
14
 
 
1
  import gradio as gr
2
  import random
3
 
4
+ def random_message(message, history):
5
  choices = ["yes", "no"]
6
 
7
  randomMessage = random.choice(choices)
8
 
9
  return randomMessage
10
 
11
+ chatbot = gr.ChatInterface(random_message, type = "messages")
12
 
13
  chatbot.launch()
14