mikeee commited on
Commit
33f1e81
·
verified ·
1 Parent(s): 2ba3e9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -67,6 +67,7 @@ footer {
67
 
68
  demo = gr.ChatInterface(
69
  respond,
 
70
  additional_inputs=[
71
  gr.Textbox(value="", label="System message"),
72
  # gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
@@ -84,7 +85,7 @@ demo = gr.ChatInterface(
84
  fill_height=True,
85
  chatbot=chatbot,
86
  css=css,
87
- examples=["Define 'deep learning' in once sentence."],
88
  # retry_btn="Retry", # unexpected keyword argument 'retry_btn'
89
  # undo_btn="Undo",
90
  # clear_btn="Clear",
 
67
 
68
  demo = gr.ChatInterface(
69
  respond,
70
+ type='messages',
71
  additional_inputs=[
72
  gr.Textbox(value="", label="System message"),
73
  # gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
85
  fill_height=True,
86
  chatbot=chatbot,
87
  css=css,
88
+ examples=[[{"role": "user", "content": "Define 'deep learning' in once sentence."}]],
89
  # retry_btn="Retry", # unexpected keyword argument 'retry_btn'
90
  # undo_btn="Undo",
91
  # clear_btn="Clear",