irmakakin commited on
Commit
d49fc5d
·
verified ·
1 Parent(s): bf1c050

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,11 +1,12 @@
1
  import gradio as gr
2
  import random
3
  #libraries^
 
4
 
5
  #def echo(message, history):
6
  #return message
7
  def yes_or_no(message, history):
8
- return random.choice(['yes','no', 'maybe','try again'])
9
 
10
  chatbot = gr.ChatInterface(yes_or_no, type = 'messages')
11
  chatbot.launch()
 
1
  import gradio as gr
2
  import random
3
  #libraries^
4
+ gr.title = 'TYPE A YES OR NO QUESTION'
5
 
6
  #def echo(message, history):
7
  #return message
8
  def yes_or_no(message, history):
9
+ return random.choice(['yes','no', 'maybe','try again', 'i dont know','hahahahahaha','guilty'])
10
 
11
  chatbot = gr.ChatInterface(yes_or_no, type = 'messages')
12
  chatbot.launch()