add semantic search
This commit is contained in:
10
src/hooks.server.ts
Normal file
10
src/hooks.server.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { getModel } from '$lib/utils/search';
|
||||
import { building } from '$app/environment';
|
||||
|
||||
if (!building) {
|
||||
getModel().catch((error) => {
|
||||
console.error('Failed to load the TensorFlow model at startup:', error);
|
||||
});
|
||||
|
||||
console.log('Model loaded successfully!');
|
||||
}
|
Reference in New Issue
Block a user