The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update apps/www/_blog/2023-08-07-hugging-face-supabase.mdx
Francesco Sansalvadore300efb271163
diff --git a/apps/www/_blog/2023-08-07-hugging-face-supabase.mdx b/apps/www/_blog/2023-08-07-hugging-face-supabase.mdxindex 642fdcba04a..19885cf3141 100644--- a/apps/www/_blog/2023-08-07-hugging-face-supabase.mdx+++ b/apps/www/_blog/2023-08-07-hugging-face-supabase.mdx@@ -117,20 +117,21 @@ serve(async (req) => {normalize: true,});- // Get the embedding output+ // Get the embedding outputconst embedding = Array.from(output.data);- // Store the embedding- const { data, error } = await supabase- .from('collections')- .insert({ embedding })+ // Store the embedding+ const { data, error } = await supabase+ .from('collections')+ .insert({ embedding });- // Return the embedding+ // Return the embeddingreturn new Response(- { new_row: data },- { headers: { 'Content-Type': 'application/json' } }+ { new_row: data },+ { headers: { 'Content-Type': 'application/json' } });});+```Now run `supabase functions serve` and you’re ready to call your function locally: