Chris Alexiuk commited on
Commit
e229477
1 Parent(s): d085a45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -40,6 +40,10 @@ messages = [
40
  prompt = ChatPromptTemplate(messages=messages)
41
  chain_type_kwargs = {"prompt": prompt}
42
 
 
 
 
 
43
 
44
  @cl.on_chat_start
45
  async def init():
 
40
  prompt = ChatPromptTemplate(messages=messages)
41
  chain_type_kwargs = {"prompt": prompt}
42
 
43
+ @cl.author_rename
44
+ def rename(orig_author: str):
45
+ rename_dict = {"RetrievalQA": "Searching the Rubilab Records"}
46
+ return rename_dict.get(orig_author, orig_author)
47
 
48
  @cl.on_chat_start
49
  async def init():