evacado commited on
Commit
ff48e4d
·
verified ·
1 Parent(s): 4759493

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -3
app.py CHANGED
@@ -1,8 +1,22 @@
1
  import gradio as gr
 
2
 
3
- def echo(message, history):
4
- return message
 
 
 
 
 
 
 
 
 
 
5
 
6
- chatbot = gr.ChatInterface(echo)
 
 
 
7
 
8
  chatbot.launch()
 
1
  import gradio as gr
2
+ import random
3
 
4
+ responses = [
5
+ "Without a doubt.",
6
+ "Outlook not so good.",
7
+ "Ask again later.",
8
+ "Yes, definitely!",
9
+ "My sources say no.",
10
+ "Signs point to yes.",
11
+ "Don't count on it.",
12
+ "It is certain.",
13
+ "Very doubtful.",
14
+ "Better not tell you now."
15
+ ]
16
 
17
+ def random(message, history):
18
+ return random.choice(responses)
19
+
20
+ chatbot = gr.ChatInterface(random)
21
 
22
  chatbot.launch()