hmb HF staff commited on
Commit
630ca3b
·
verified ·
1 Parent(s): 72d6429

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
 
3
 
4
- def talk(message, history):
5
- return "hi"
6
 
7
 
8
  DESCRIPTION = """
@@ -23,7 +23,7 @@ If you want to support my work consider clicking on the heart react button ❤
23
 
24
 
25
  demo = gr.ChatInterface(
26
- fn=talk,
27
  chatbot=gr.Chatbot(
28
  ),
29
  description=DESCRIPTION,
 
1
  import gradio as gr
2
 
3
 
4
+ def echo(message, history):
5
+ return message["text"]
6
 
7
 
8
  DESCRIPTION = """
 
23
 
24
 
25
  demo = gr.ChatInterface(
26
+ fn=echo,
27
  chatbot=gr.Chatbot(
28
  ),
29
  description=DESCRIPTION,