Baweja commited on
Commit
3507b26
·
verified ·
1 Parent(s): 6c30bcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -156,6 +156,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
156
  """
157
  demo = gr.ChatInterface(
158
  respond,
 
159
  additional_inputs=[
160
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
161
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
@@ -172,4 +173,4 @@ demo = gr.ChatInterface(
172
 
173
 
174
  if __name__ == "__main__":
175
- demo.launch( )
 
156
  """
157
  demo = gr.ChatInterface(
158
  respond,
159
+ type = 'messages'
160
  additional_inputs=[
161
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
162
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
173
 
174
 
175
  if __name__ == "__main__":
176
+ demo.launch(share = True )