mingbaer commited on
Commit
e43508e
·
verified ·
1 Parent(s): 919a8e3

set type as = to messages

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,7 +4,8 @@ import gradio as gr
4
  def echo(message, history):
5
  return message
6
 
7
- chatbot = gr.ChatInterface(echo)
 
8
  # defining my chatbot so that the user can interact, see their conversation history and send new messages
9
 
10
  chatbot.launch()
 
4
  def echo(message, history):
5
  return message
6
 
7
+ print("Hello World!")
8
+ chatbot = gr.ChatInterface(echo, type="messages")
9
  # defining my chatbot so that the user can interact, see their conversation history and send new messages
10
 
11
  chatbot.launch()