Skip to content

Commit db6a362

Browse files
committedJan 28, 2024
minor code change on_chart_start
1 parent c09f81c commit db6a362

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎app.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
from pathlib import Path
1414
import chainlit as cl
1515

16-
1716
load_dotenv()
1817

1918

2019
@cl.on_chat_start
2120
async def on_chat_start():
22-
msg = cl.Message(content=f"Starting...", disable_feedback=True)
21+
msg = cl.Message(content="")
2322
await msg.send()
2423

2524
system_template = r"""
2625
You are a helpful personal assistant who answers to users questions based on the contexts given to you.
2726
The contexts are personal details for LinTiong Lau (Ivan) which describes his employment history, education,
2827
skills, projects, etc. If you don't know the answer, just say that you don't know, don't try to make up an answer.
2928
Context: {context}
30-
Chat History: {chat_history}"""
29+
Chat History: {chat_history}
30+
Your Response:"""
3131

3232
human_template = "{question}"
3333

Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.