RithikaChalam commited on
Commit
615b65b
·
verified ·
1 Parent(s): d69c39b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -1,8 +1,12 @@
1
  import gradio as gr
2
  import random
3
 
4
- def yes_or_no(message,history):
5
- return random.choice(['yes','no'])
 
 
 
 
6
 
7
- chatbot = gr.ChatInterface(yes_or_no, type="messages")
8
  chatbot.launch()
 
1
  import gradio as gr
2
  import random
3
 
4
+ def eight_ball(message,history):
5
+ return random.choice(['It is certain', 'Reply hazy, try again', 'Don’t count on it',
6
+ 'It is decidedly so', 'Ask again later', 'My reply is no',
7
+ 'Without a doubt', 'Better not tell you now', 'My sources say no',
8
+ 'Yes definitely', 'Cannot predict now', 'Outlook not so good',
9
+ 'You may rely on it', 'Concentrate and ask again', 'Very doubtful'])
10
 
11
+ chatbot = gr.ChatInterface(eight_ball, type="messages")
12
  chatbot.launch()