Leilaaaah commited on
Commit
5937eec
·
verified ·
1 Parent(s): 8ffd156

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -8,5 +8,10 @@ def echo(message,history):
8
  def random_response(message,history):
9
  return random.choice(["yes","no"])
10
 
11
- chatbot = gr.ChatInterface(random_response, type='messages')
 
 
 
 
 
12
  chatbot.launch()
 
8
  def random_response(message,history):
9
  return random.choice(["yes","no"])
10
 
11
+ def eightball(message,history):
12
+ list=["yessir!","nah uh diva","aw heck no", "YUPPPP"]
13
+ output=random.choice(list)
14
+ return output
15
+
16
+ chatbot = gr.ChatInterface(eightball, type='messages')
17
  chatbot.launch()