mingbaer commited on
Commit
3aba833
·
verified ·
1 Parent(s): d097f60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -1,7 +1,10 @@
1
  import gradio as gr
2
- def echo(message, history):
3
- # why history as a parameter
4
- return message
 
 
5
  print("Hello, World!")
6
- chatbot = gr.ChatInterface(echo, type="messages")
 
7
  chatbot.launch()
 
1
  import gradio as gr
2
+ import random
3
+ def yes_or_no(message, history):
4
+ return random.uniform(yes, no)
5
+ # def echo(message, history):
6
+ # return message
7
  print("Hello, World!")
8
+ print(history)
9
+ chatbot = gr.ChatInterface(yes_or_no, type="messages")
10
  chatbot.launch()