fix build errors
Browse files
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
|
|
|
|
| 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)
|