amitashukla commited on
Commit
70473f2
Β·
verified Β·
1 Parent(s): 8ff4749

fix build errors

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -404,7 +404,7 @@ def create_chatbot():
404
  "How can I support you today? You can share anything about what you're dealing withβ€”mental health concerns, alcohol or drug use, support for a loved one, or help finding treatment resources."
405
  )
406
 
407
- with gr.Blocks(title="Harbor") as demo:
408
 
409
  # ── Landing Page ──────────────────────────────────────────────
410
  with gr.Column(visible=True) as landing_page:
@@ -468,6 +468,7 @@ def create_chatbot():
468
  chatbot_display = gr.Chatbot(
469
  value=[{"role": "assistant", "content": OPENING_MESSAGE}],
470
  label="βš“ Harbor",
 
471
  )
472
  with gr.Row():
473
  msg_input = gr.Textbox(
@@ -517,4 +518,4 @@ def create_chatbot():
517
 
518
  if __name__ == "__main__":
519
  demo = create_chatbot()
520
- demo.launch(share=True, theme=THEME, css=CSS)
 
404
  "How can I support you today? You can share anything about what you're dealing withβ€”mental health concerns, alcohol or drug use, support for a loved one, or help finding treatment resources."
405
  )
406
 
407
+ with gr.Blocks(title="Harbor", theme=THEME, css=CSS) as demo:
408
 
409
  # ── Landing Page ──────────────────────────────────────────────
410
  with gr.Column(visible=True) as landing_page:
 
468
  chatbot_display = gr.Chatbot(
469
  value=[{"role": "assistant", "content": OPENING_MESSAGE}],
470
  label="βš“ Harbor",
471
+ type="messages",
472
  )
473
  with gr.Row():
474
  msg_input = gr.Textbox(
 
518
 
519
  if __name__ == "__main__":
520
  demo = create_chatbot()
521
+ demo.launch(share=True)