Maddiew1314 commited on
Commit
fc4bb98
·
verified ·
1 Parent(s): 1cd7518

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,10 +1,11 @@
1
  import gradio as gr
 
2
 
3
  def echo(message, history):
4
  choices = ["yes", "no"]
5
  #use random to select one of those messages
6
  random_word = random.choice(choices)
7
- return message
8
  print(random_word)
9
 
10
  chatbot = gr.ChatInterface(echo, type = "messages")
 
1
  import gradio as gr
2
+ import random
3
 
4
  def echo(message, history):
5
  choices = ["yes", "no"]
6
  #use random to select one of those messages
7
  random_word = random.choice(choices)
8
+ return message
9
  print(random_word)
10
 
11
  chatbot = gr.ChatInterface(echo, type = "messages")