added inference api

This commit is contained in:
Om Raheja 2024-05-18 13:44:53 -04:00
parent 3ac5abab1b
commit 0c10365da1
1 changed files with 24 additions and 17 deletions

View File

@ -148,7 +148,14 @@
});
// Alert the input values
alert(values);
const output = await createInference(values);
// Create a new div element to hold the output
const outputDiv = document.createElement("div");
outputDiv.textContent = output;
// Add the output div to the page
document.body.appendChild(outputDiv);
}
</script>
</body>