Janec09 commited on
Commit
3161d33
·
verified ·
1 Parent(s): fe101cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  import random
3
 
4
  def magic_8_ball(message, history):
5
- return random.choice(['what's up', 'yes', 'no'])
6
 
7
  #def yes_or_no(message, history):
8
  # return random.choice(['Yes', 'No'])
@@ -10,7 +10,7 @@ def magic_8_ball(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()
 
2
  import random
3
 
4
  def magic_8_ball(message, history):
5
+ return random.choice(['yes', 'no'])
6
 
7
  #def yes_or_no(message, history):
8
  # return random.choice(['Yes', 'No'])
 
10
  # return message
11
 
12
  print("Hello World!")
13
+ chatbot = gr.ChatInterface(magic_8_ball, title = "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()