arohi-k commited on
Commit
6279a90
·
verified ·
1 Parent(s): 4557c09

changed function name

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