Whataboutup commited on
Commit
7cb2b0f
·
verified ·
1 Parent(s): 1b217ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,8 +1,9 @@
1
  import gradio as gr
2
-
3
- def echo(message, history):
4
- return message
 
5
  print("hello, Princess")
6
- chatbot = gr.ChatInterface(echo, type="messages") #chatbot UI - conversation history and user input
7
 
8
  chatbot.launch()
 
1
  import gradio as gr
2
+ import random #added here
3
+ def respond_yes_no_randomly(message, history):
4
+ responses = ["yes", "No"]#added here
5
+ return random.choice(responses)#added here
6
  print("hello, Princess")
7
+ chatbot = gr.ChatInterface(respond_yes_no_randomly, type="messages" title="Personal Yes No Women")
8
 
9
  chatbot.launch()