Commit 78375e5f authored by brent's avatar brent

update aonweb sdk

parent 2a3cfc26
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"name": "AONET", "name": "AONET",
"version": "0.0.0", "version": "0.0.0",
"dependencies": { "dependencies": {
"aonweb": "^0.0.2", "aonweb": "^0.0.5",
"aos": "^2.3.4", "aos": "^2.3.4",
"axios": "^1.6.8", "axios": "^1.6.8",
"element-plus": "^2.7.5", "element-plus": "^2.7.5",
...@@ -1850,9 +1850,9 @@ ...@@ -1850,9 +1850,9 @@
} }
}, },
"node_modules/aonweb": { "node_modules/aonweb": {
"version": "0.0.2", "version": "0.0.5",
"resolved": "https://registry.npmjs.org/aonweb/-/aonweb-0.0.2.tgz", "resolved": "https://registry.npmjs.org/aonweb/-/aonweb-0.0.5.tgz",
"integrity": "sha512-JF1nzI79nTrESfWkorD6PPUuYNwW0YJ2qSsFMTRdT/13CABvhrlnkeP3y6KKyXhRP+gel/HilPDEsaAVdl5vXQ==", "integrity": "sha512-Z6f/sy+STKgkORJNs0fdbwrydMf7nUcProO6LDMlpkku0b+B1J3ilMY8h1f4HAYeCq6ogThL/OjLu68sgq8OjQ==",
"dependencies": { "dependencies": {
"@fingerprintjs/fingerprintjs": "^4.4.0", "@fingerprintjs/fingerprintjs": "^4.4.0",
"uuid": "^9.0.1", "uuid": "^9.0.1",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"type-check": "vue-tsc --build --force" "type-check": "vue-tsc --build --force"
}, },
"dependencies": { "dependencies": {
"aonweb": "^0.0.2", "aonweb": "^0.0.5",
"aos": "^2.3.4", "aos": "^2.3.4",
"axios": "^1.6.8", "axios": "^1.6.8",
"element-plus": "^2.7.5", "element-plus": "^2.7.5",
......
...@@ -149,6 +149,7 @@ const formSubmit = async () => { ...@@ -149,6 +149,7 @@ const formSubmit = async () => {
const ai_options = { const ai_options = {
//Please replace with your own API key or jwt token. //Please replace with your own API key or jwt token.
auth: "Rbhpcp0FKNrYNA1nZkrwrIbD0YSSRlVG", auth: "Rbhpcp0FKNrYNA1nZkrwrIbD0YSSRlVG",
appid: ""
// host: "http://localhost:8080" // host: "http://localhost:8080"
} }
...@@ -166,7 +167,8 @@ const formSubmit = async () => { ...@@ -166,7 +167,8 @@ const formSubmit = async () => {
} }
} }
console.log("formSubmit data", data) console.log("formSubmit data", data)
let response = await aonet.prediction("/predictions/ai/face-to-many", data) let price = 12.5
let response = await aonet.prediction("/predictions/ai/face-to-many", data,price)
console.log("test", response) console.log("test", response)
if (response.task.exec_code == 200 && response.task.is_success) { if (response.task.exec_code == 200 && response.task.is_success) {
showLoading.value = false 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