arohi-k commited on
Commit
cd2baca
·
verified ·
1 Parent(s): 188af28

added random element

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,6 +1,10 @@
1
  import gradio as gr
 
2
 
3
  def echo(message, history):
 
 
 
4
  return message
5
 
6
  chatbot = gr.ChatInterface(echo, type = "messages")
 
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
+ print(random_element)
8
  return message
9
 
10
  chatbot = gr.ChatInterface(echo, type = "messages")