AriniR commited on
Commit
e5f53e6
·
verified ·
1 Parent(s): c5379e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -2,11 +2,12 @@ import gradio as gr
2
  import random
3
 
4
 
5
- def echo (message, history):
6
- choices = ('yes','no')
7
  wow = random.choice(choices)
8
  return wow
9
- chatbot = gr.ChatInterface(echo)
 
10
 
11
 
12
  chatbot.launch()
 
2
  import random
3
 
4
 
5
+ def random_message (message, history):
6
+ choices = ('yes','no','i don't think so,"be so for real','yep', 'woooow', 'hmmmm', 'idk', 'idc', 'yaaay', 'why would i know')
7
  wow = random.choice(choices)
8
  return wow
9
+ chatbot = gr.ChatInterface(random_message, type = "messages", title = "chatty")
10
+
11
 
12
 
13
  chatbot.launch()