Skip to content

Commit

Permalink
fix checks
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Luar <[email protected]>
  • Loading branch information
luarss committed Oct 27, 2024
1 parent 6148db4 commit bac3a77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/src/vectorstores/faiss.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(
self.embedding_model = GoogleGenerativeAIEmbeddings(
model=self.embeddings_model_name,
task_type="retrieval_document",
) # type: ignore
)
logging.info("Using Google GenerativeAI embeddings...")

elif embeddings_type == "GOOGLE_VERTEXAI":
Expand Down
4 changes: 2 additions & 2 deletions frontend/utils/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def submit_feedback_to_google_sheet(
"https://www.googleapis.com/auth/drive",
]

creds = Credentials.from_service_account_file(service_account_file, scopes=scope) # type: ignore
client = gspread.authorize(creds) # type: ignore
creds = Credentials.from_service_account_file(service_account_file, scopes=scope)
client = gspread.authorize(creds)

sheet_id = os.getenv("FEEDBACK_SHEET_ID", "")
target_gid = int(os.getenv("FEEDBACK_SHEET_GID", "0"))
Expand Down

0 comments on commit bac3a77

Please sign in to comment.