rp1954 commited on
Commit
dbcd4c6
·
verified ·
1 Parent(s): c20e568

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,11 +1,11 @@
1
  import gradio as gr
2
- import random as rand
3
 
4
- def answer(message):
5
- return message
6
 
7
  print("Hello, world!")
8
 
9
- chatbot = gr.ChatInterface(answer)
10
 
11
  chatbot.launch()
 
1
  import gradio as gr
2
+ import random
3
 
4
+ def echo(message, history):
5
+ return random.choice(["Yes", "No"])
6
 
7
  print("Hello, world!")
8
 
9
+ chatbot = gr.ChatInterface(echo)
10
 
11
  chatbot.launch()