Commit fb1d87b0 authored by anxin100's avatar anxin100 Committed by GitHub

Merge pull request #1 from aonnet/dev

update aonweb sdk
parents ee209646 d63e0393
......@@ -8,7 +8,7 @@
"name": "AONET",
"version": "0.0.0",
"dependencies": {
"aonweb": "^0.0.2",
"aonweb": "^0.0.5",
"aos": "^2.3.4",
"axios": "^1.6.8",
"element-plus": "^2.7.5",
......@@ -1850,9 +1850,9 @@
}
},
"node_modules/aonweb": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/aonweb/-/aonweb-0.0.2.tgz",
"integrity": "sha512-JF1nzI79nTrESfWkorD6PPUuYNwW0YJ2qSsFMTRdT/13CABvhrlnkeP3y6KKyXhRP+gel/HilPDEsaAVdl5vXQ==",
"version": "0.0.5",
"resolved": "https://registry.npmjs.org/aonweb/-/aonweb-0.0.5.tgz",
"integrity": "sha512-Z6f/sy+STKgkORJNs0fdbwrydMf7nUcProO6LDMlpkku0b+B1J3ilMY8h1f4HAYeCq6ogThL/OjLu68sgq8OjQ==",
"dependencies": {
"@fingerprintjs/fingerprintjs": "^4.4.0",
"uuid": "^9.0.1",
......
......@@ -11,7 +11,7 @@
"type-check": "vue-tsc --build --force"
},
"dependencies": {
"aonweb": "^0.0.2",
"aonweb": "^0.0.5",
"aos": "^2.3.4",
"axios": "^1.6.8",
"element-plus": "^2.7.5",
......
......@@ -167,6 +167,7 @@ const formSubmit = async () => {
const ai_options = {
//Please replace with your own API key or jwt token.
auth: "Rbhpcp0FKNrYNA1nZkrwrIbD0YSSRlVG",
appid: ""
// host: "http://localhost:8080"
}
......@@ -183,7 +184,10 @@ const formSubmit = async () => {
"instant_id_strength": 0.8
}
}
let response = await aonet.prediction("/predictions/ai/face-to-many", data)
console.log("formSubmit data", data)
let price = 12.5
let response = await aonet.prediction("/predictions/ai/face-to-many", data,price)
console.log("test", response)
if (response.task.exec_code == 200 && response.task.is_success) {
showLoading.value = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment