Maia Pelletier commited on
Commit
5866eb5
·
1 Parent(s): d8dccbd

welcome message

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -390,7 +390,7 @@ with gr.Blocks(title="Ask AgriWise AI") as app:
390
  chatbot_interface = gr.Chatbot(
391
  label="Chat",
392
  height=500,
393
- value=[] # Initialize with empty list
394
  )
395
 
396
  with gr.Row():
@@ -415,7 +415,7 @@ with gr.Blocks(title="Ask AgriWise AI") as app:
415
  outputs=[msg, chatbot_interface]
416
  )
417
  def clear_chat():
418
- return [], ""
419
 
420
  clear_btn.click(clear_chat, outputs=[chatbot_interface, msg])
421
 
 
390
  chatbot_interface = gr.Chatbot(
391
  label="Chat",
392
  height=500,
393
+ value=[{"role": "assistant", "content": "Welcome to AskAgriWise AI! Ask me any questions you have about organic certification and operation in Canada."}]
394
  )
395
 
396
  with gr.Row():
 
415
  outputs=[msg, chatbot_interface]
416
  )
417
  def clear_chat():
418
+ return [{"role": "assistant", "content": "Welcome to AskAgriWise AI! Ask me any questions you have about organic certification and operation in Canada."}], ""
419
 
420
  clear_btn.click(clear_chat, outputs=[chatbot_interface, msg])
421