Janec09 commited on
Commit
d71c663
·
verified ·
1 Parent(s): de76f80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -1,14 +1,19 @@
1
  import gradio as gr
2
  import random
3
 
4
- def eightball(message, history):
5
  return random.choice(['Let's goooo!!!!!', 'Yes haha', 'NO', 'GREAT!!!'])
6
 
7
  # def echo(message, history):
8
  # return message
9
 
10
  print("Hello World!")
11
- chatbot = gr.ChatInterface(eightball, type = "messages")
 
 
 
 
 
12
  #defining my chatbot so users can interact and see their conversation history and send new messages!
13
 
14
  chatbot.launch()
 
1
  import gradio as gr
2
  import random
3
 
4
+ def magic_8_ball(message, history):
5
  return random.choice(['Let's goooo!!!!!', 'Yes haha', 'NO', 'GREAT!!!'])
6
 
7
  # def echo(message, history):
8
  # return message
9
 
10
  print("Hello World!")
11
+ chatbot = gr.ChatInterface(
12
+ magic_8_ball,
13
+ title = "Magic 8 Ball",
14
+ description = "Ask any yes or no question to learn about your future",
15
+ type = "messages"
16
+ )
17
  #defining my chatbot so users can interact and see their conversation history and send new messages!
18
 
19
  chatbot.launch()