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