CalebMaresca commited on
Commit
84e2c52
·
1 Parent(s): e4b83ec
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,7 +51,7 @@ split_documents = text_splitter.split_documents(documents)
51
 
52
  ### 3. LOAD HUGGINGFACE EMBEDDINGS
53
  hf_embeddings = HuggingFaceEndpointEmbeddings(
54
- model="https://vh1lkulhtegi6p9r.us-east-1.aws.endpoints.huggingface.cloud",
55
  task="feature-extraction",
56
  huggingfacehub_api_token=os.environ["HF_TOKEN"],
57
  )
@@ -137,7 +137,7 @@ rag_prompt = PromptTemplate.from_template(RAG_PROMPT_TEMPLATE)
137
  """
138
  ### 1. CREATE HUGGINGFACE ENDPOINT FOR LLM
139
  hf_llm = HuggingFaceEndpoint(
140
- endpoint_url="https://bk4n5qv7rq0y3x5u.us-east-1.aws.endpoints.huggingface.cloud",
141
  task="text-generation",
142
  max_new_tokens=512,
143
  top_k=10,
 
51
 
52
  ### 3. LOAD HUGGINGFACE EMBEDDINGS
53
  hf_embeddings = HuggingFaceEndpointEmbeddings(
54
+ model=HF_EMBED_ENDPOINT,
55
  task="feature-extraction",
56
  huggingfacehub_api_token=os.environ["HF_TOKEN"],
57
  )
 
137
  """
138
  ### 1. CREATE HUGGINGFACE ENDPOINT FOR LLM
139
  hf_llm = HuggingFaceEndpoint(
140
+ endpoint_url=HF_LLM_ENDPOINT,
141
  task="text-generation",
142
  max_new_tokens=512,
143
  top_k=10,