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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,10 +1,11 @@
1
  import gradio as gr
 
2
 
3
- def echo(message, history):
4
  return message
5
 
6
  print("Hello, world!")
7
 
8
- chatbot = gr.ChatInterface(echo, type="messages")
9
 
10
  chatbot.launch()
 
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()