adough commited on
Commit
7b62e16
·
verified ·
1 Parent(s): 73bbf4a

added description

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1,10 +1,13 @@
1
  import gradio as gr
2
  import random
3
 
 
 
 
4
  def respond_yes_no_randomly(message, history):
5
- responses = ["yes","no"]
6
  return random.choice(responses)
7
 
8
- chatbot = gr.ChatInterface(respond_yes_no_randomly, type = "messages")
9
 
10
  chatbot.launch()
 
1
  import gradio as gr
2
  import random
3
 
4
+ #def echo(message,history)
5
+ #return message
6
+
7
  def respond_yes_no_randomly(message, history):
8
+ responses = ["yes","no","maybe","can't be determined"]
9
  return random.choice(responses)
10
 
11
+ chatbot = gr.ChatInterface(respond_yes_no_randomly, type = "messages", title = "answer bot", description = "this ChatBot answers any yes no question you ask it")
12
 
13
  chatbot.launch()