JoshuaKelleyDs commited on
Commit
75db28a
·
verified ·
1 Parent(s): c97d217

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -119,7 +119,7 @@ async def start():
119
  ensemble_retriever = await create_ensemble_retriever(vector_db, bm25) # create the ensemble retriever
120
  cl.user_session.set("ensemble_retriever", ensemble_retriever) # store the ensemble retriever in the user session for our on message function
121
  except Exception as e:
122
- await cl.Message(content=f"failed to load model: {e}").send() # display the error if we failed to load the model
123
 
124
  @cl.on_message
125
  async def message(message: cl.Message):
 
119
  ensemble_retriever = await create_ensemble_retriever(vector_db, bm25) # create the ensemble retriever
120
  cl.user_session.set("ensemble_retriever", ensemble_retriever) # store the ensemble retriever in the user session for our on message function
121
  except Exception as e:
122
+ await cl.Message(content=f"error that happened: {e}").send() # display the error if we failed to load the model
123
 
124
  @cl.on_message
125
  async def message(message: cl.Message):