hagardner18 commited on
Commit
5ffbaca
·
verified ·
1 Parent(s): 64cb07a

set type to messages

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