RithikaChalam commited on
Commit
0e4187f
·
verified ·
1 Parent(s): faa2507

adding new parameter to messages()

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,6 +1,8 @@
1
  import gradio as gr
2
 
3
  def echo(message,history):
 
4
  return message
5
- chatbot = gr.ChatInterface(echo)
 
6
  chatbot.launch()
 
1
  import gradio as gr
2
 
3
  def echo(message,history):
4
+ print('Hello World')
5
  return message
6
+
7
+ chatbot = gr.ChatInterface(echo, type='messages')
8
  chatbot.launch()