fix: onnx url

This commit is contained in:
Radionic
2023-11-14 13:49:24 +08:00
parent 66999ed3e5
commit 6781e75764
+1 -1
View File
@@ -11,7 +11,7 @@ export let model = null;
export const initModel = async (modelType) => {
try {
model = await ort.InferenceSession.create(
`http://127.0.0.1:8188/sam_model?type=${modelType}`
`${location.protocol}//${location.host}/sam_model?type=${modelType}`
);
} catch (e) {
console.log(e);