Janec09 commited on
Commit
532a3aa
·
verified ·
1 Parent(s): adbd721

Update app.py

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