Janec09 commited on
Commit
5ec42f9
·
verified ·
1 Parent(s): 26cf07e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,14 +1,14 @@
1
  import gradio as gr
2
  import random
3
 
4
- def yes_or_no(message, history):
5
- return random.choice(['Yes', 'No', 'Try Again'])
6
 
7
  # def echo(message, history):
8
  # return message
9
 
10
  print("Hello World!")
11
- chatbot = gr.ChatInterface(yes_or_no, 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 8ball(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(8ball, title = "Magic 8 Ball", type = "messages")
12
  #defining my chatbot so users can interact and see their conversation history and send new messages!
13
 
14
  chatbot.launch()