drewgenai commited on
Commit
380d379
·
1 Parent(s): 54eae24
Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -121,17 +121,6 @@ hf_llm = HuggingFaceEndpoint(
121
  huggingfacehub_api_token=HF_TOKEN,
122
  )
123
 
124
- @cl.author_rename
125
- def rename(original_author: str):
126
- """
127
- This function can be used to rename the 'author' of a message.
128
-
129
- In this case, we're overriding the 'Assistant' author to be 'Paul Graham Essay Bot'.
130
- """
131
- rename_dict = {
132
- "Assistant" : "Paul Graham Essay Bot"
133
- }
134
- return rename_dict.get(original_author, original_author)
135
 
136
  @cl.on_chat_start
137
  async def start_chat():
 
121
  huggingfacehub_api_token=HF_TOKEN,
122
  )
123
 
 
 
 
 
 
 
 
 
 
 
 
124
 
125
  @cl.on_chat_start
126
  async def start_chat():