Spaces:
Sleeping
Sleeping
Chris Alexiuk
commited on
Commit
·
7e18dc0
1
Parent(s):
91e9ec4
Update app.py
Browse files
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": "Consulting The Kens"}
|
| 46 |
+
return rename_dict.get(orig_author, orig_author)
|
| 47 |
|
| 48 |
@cl.on_chat_start
|
| 49 |
async def init():
|