added inference api
This commit is contained in:
parent
3ac5abab1b
commit
0c10365da1
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue