Fixes for Bruces comments

Signed-off-by: Matt Williams <m@technovangelist.com>
This commit is contained in:
Matt Williams
2023-11-06 14:16:24 -08:00
parent 3d8872bbbd
commit 9dd88dc040
3 changed files with 8 additions and 9 deletions

View File

@@ -41,8 +41,7 @@ const fetchArtistWorkIds = async (artist: string): Promise<number[]> => {
const response = await fetch(artistURL);
const json = await response.json();
const artistWorks: { id: number }[] = json.data;
const justIds = artistWorks.map((work) => work.id);
return justIds;
return artistWorks.map((work) => work.id);
}
const embedding = new HuggingFaceTransformersEmbeddings({
modelName: "Xenova/all-MiniLM-L6-v2",