codersoul commited on
Commit
16bf4f1
·
verified ·
1 Parent(s): b7a97d7

Added a yes or no random response

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import random
3
  def random_response(message, history):
4
- resonse_options = ["yes", "no"]
5
  return random.choice(response_options)
6
 
7
  chatbot = gr.ChatInterface(random_response)
 
1
  import gradio as gr
2
  import random
3
  def random_response(message, history):
4
+ response_options = ["yes", "no"]
5
  return random.choice(response_options)
6
 
7
  chatbot = gr.ChatInterface(random_response)