Faizal2805 commited on
Commit
6915fe7
·
verified ·
1 Parent(s): ad8a314

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -45,6 +45,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
45
  """
46
  demo = gr.ChatInterface(
47
  respond,
 
48
  additional_inputs=[
49
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
50
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
@@ -59,6 +60,7 @@ demo = gr.ChatInterface(
59
  ],
60
  )
61
 
 
62
  if __name__ == "__main__":
63
  demo.launch()
64
 
 
45
  """
46
  demo = gr.ChatInterface(
47
  respond,
48
+ chatbot=gr.Chatbot(type="messages"),
49
  additional_inputs=[
50
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
51
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
60
  ],
61
  )
62
 
63
+
64
  if __name__ == "__main__":
65
  demo.launch()
66