ewingreen commited on
Commit
2c1eb89
·
verified ·
1 Parent(s): 35bd2b8

Update type parameter to 'messages'

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import gradio as gr
2
 
3
  def echo(message, history):
 
4
  return message
5
 
6
- chatbot = gr.ChatInterface(echo)
7
  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()