codelion commited on
Commit
0f955b0
·
verified ·
1 Parent(s): d035a6e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -1
main.py CHANGED
@@ -27,7 +27,10 @@ logger = get_logger(__name__)
27
 
28
  embeddings = HuggingFaceInferenceAPIEmbeddings(
29
  api_key=hf_api_key,
30
- model_name="BAAI/bge-large-en-v1.5"
 
 
 
31
  )
32
 
33
  if 'chat_history' not in st.session_state:
 
27
 
28
  embeddings = HuggingFaceInferenceAPIEmbeddings(
29
  api_key=hf_api_key,
30
+ model_name="BAAI/bge-large-en-v1.5",
31
+ configuration: {
32
+ baseURL: "https://router.huggingface.co/hf-inference/pipeline/feature-extraction",
33
+ },
34
  )
35
 
36
  if 'chat_history' not in st.session_state: