krrisstiie commited on
Commit
e4db748
·
verified ·
1 Parent(s): 36a6005

echo -> respond

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