Merge pull request #21 from PaskalSunari/ML-Office-01

Ml office 01
pull/912/head
Paskal Sunari 5 months ago committed by GitHub
commit 02091f2fa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -7,14 +7,11 @@ const checks = [...document.querySelectorAll('.checkbox')];
checks.forEach(check => {
check.addEventListener('change', function() {
// toggle the state of the ingredient
// based on the checkbox's value (1 or 0)
ingredients[check.value] = check.checked ? 1 : 0;
});
});
function testCheckboxes() {
// validate if at least one checkbox is checked
return checks.some(check => check.checked);
}
@ -27,7 +24,6 @@ async function startInference() {
return;
}
try {
// create a new session and load the model.
const session = await ort.InferenceSession.create('./model.onnx');

@ -6,7 +6,7 @@
<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web@1.9.0/dist/ort.min.js"></script>
</head>
<body>
<!-- Navigation Bar -->
<nav>
<div class="logo">
<a href="#">Cuisine Matcher</a>

Loading…
Cancel
Save