Fix typos in SAM WASM example (#884)

This commit is contained in:
Aaron Sun
2023-09-18 16:41:50 +08:00
committed by GitHub
parent ef8cd8fea0
commit 12696b7b2d

View File

@ -20,7 +20,7 @@
</style>
<script src="https://cdn.tailwindcss.com"></script>
<script type="module">
// base url for audio examples
// base url for image examples
const MODEL_BASEURL =
"https://huggingface.co/lmz/candle-sam/resolve/main/";
@ -38,7 +38,7 @@
async function segmentPoints(
modelURL, // URL to the weights file
modelID, // model ID
imageURL, // URL to the audio file
imageURL, // URL to the image file
points // {x, y} points to prompt image
) {
return new Promise((resolve, reject) => {