psuserlas commited on
Commit
f44bf59
·
verified ·
1 Parent(s): f9b847d

added things

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
  import random as rd
3
 
4
- def echo(message,history):
5
- choose = ["It is certain", "Without a doubt","Better not tell you now", "Don't count on it"]
6
- random_choose = rd.choice(choose)
7
  return random_choose
8
 
9
- chatbot = gr.ChatInterface(echo, type = 'messages', title = 'Best Friend')
10
  chatbot.launch()
 
1
  import gradio as gr
2
  import random as rd
3
 
4
+ def magic_eight_ball(message,history):
5
+ responses = ["It is certain", "Without a doubt","Better not tell you now", "Don't count on it"]
6
+ random_choose = rd.choice(responses)
7
  return random_choose
8
 
9
+ chatbot = gr.ChatInterface(magic_eight_ball, type = 'messages', title = 'Best Friend', description = 'Ask me your most pressing questions!', theme = 'mgetz/Celeb_Glitzy')
10
  chatbot.launch()