ashimanair commited on
Commit
82b0a8f
·
verified ·
1 Parent(s): 16c21a8

i think i got random

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,8 +3,8 @@ import random
3
 
4
  def echo(message, history):
5
  choices = ["yes", "no"]
6
- choices.random(message)
7
- return choices
8
 
9
  chatbot = gr.ChatInterface(echo, type = "message")
10
 
 
3
 
4
  def echo(message, history):
5
  choices = ["yes", "no"]
6
+ random_choices = random.choices
7
+ return random_choices
8
 
9
  chatbot = gr.ChatInterface(echo, type = "message")
10