ryanrwatkins commited on
Commit
637171e
1 Parent(s): 7bd7476

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -28,6 +28,7 @@ from langchain_openai import OpenAI, OpenAIEmbeddings, ChatOpenAI
28
  from langchain_google_genai import ChatGoogleGenerativeAI
29
  from langchain_google_genai import GoogleGenerativeAIEmbeddings
30
 
 
31
  # LLM: HuggingFace
32
  from langchain_community.embeddings import HuggingFaceInferenceAPIEmbeddings
33
  from langchain_community.llms import HuggingFaceHub
@@ -162,7 +163,7 @@ def select_embeddings_model(LLM_service="HuggingFace"):
162
  if LLM_service == "Google":
163
  embeddings = GoogleGenerativeAIEmbeddings(
164
  model="models/embedding-001",
165
- google_api_key=google_api_key
166
  )
167
  if LLM_service == "HuggingFace":
168
  embeddings = HuggingFaceInferenceAPIEmbeddings(
 
28
  from langchain_google_genai import ChatGoogleGenerativeAI
29
  from langchain_google_genai import GoogleGenerativeAIEmbeddings
30
 
31
+
32
  # LLM: HuggingFace
33
  from langchain_community.embeddings import HuggingFaceInferenceAPIEmbeddings
34
  from langchain_community.llms import HuggingFaceHub
 
163
  if LLM_service == "Google":
164
  embeddings = GoogleGenerativeAIEmbeddings(
165
  model="models/embedding-001",
166
+ google_api_key=google_api_key,
167
  )
168
  if LLM_service == "HuggingFace":
169
  embeddings = HuggingFaceInferenceAPIEmbeddings(