Theresa Hoesl commited on
Commit
dfd3cac
·
1 Parent(s): 93fe578

updated demo

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -156,7 +156,7 @@ def respond(
156
  # Gradio app configuration
157
  demo = gr.ChatInterface(
158
  fn=respond,
159
- chatbot="Assistant",
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"),
@@ -171,5 +171,6 @@ demo = gr.ChatInterface(
171
  ],
172
  )
173
 
 
174
  if __name__ == "__main__":
175
  demo.launch()
 
156
  # Gradio app configuration
157
  demo = gr.ChatInterface(
158
  fn=respond,
159
+ chatbot=gr.Chatbot(label="Assistant"), # Use a Gradio Chatbot component
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"),
 
171
  ],
172
  )
173
 
174
+
175
  if __name__ == "__main__":
176
  demo.launch()