Files
playground/src/hooks.server.ts
2024-05-31 01:31:37 -04:00

11 lines
267 B
TypeScript

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!');
}