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

help idk how to use 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()
7
- return message
8
 
9
  chatbot = gr.ChatInterface(echo, type = "message")
10
 
 
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