bhavya-k commited on
Commit
60ec9da
·
verified ·
1 Parent(s): b3f1f1f
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
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()
 
1
  import gradio as gr
2
  import random
3
+ def random_message(message, history):
4
  choices = ["yes", "no"]
5
  random_element = random.choice(choices)
6
  return random_element
7
+ chatbot = gr.ChatInterface(random_message, type = "messages")
8
  chatbot.launch()