Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
poster
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘续中
poster
Commits
fb1d87b0
Unverified
Commit
fb1d87b0
authored
Jun 19, 2024
by
anxin100
Committed by
GitHub
Jun 19, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1 from aonnet/dev
update aonweb sdk
parents
ee209646
d63e0393
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
package-lock.json
package-lock.json
+4
-4
package.json
package.json
+1
-1
Index.vue
src/views/Index.vue
+5
-1
No files found.
package-lock.json
View file @
fb1d87b0
...
...
@@ -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/HilPDEsaAVdl5vX
Q=="
,
"version"
:
"0.0.
5
"
,
"resolved"
:
"https://registry.npmjs.org/aonweb/-/aonweb-0.0.
5
.tgz"
,
"integrity"
:
"sha512-
Z6f/sy+STKgkORJNs0fdbwrydMf7nUcProO6LDMlpkku0b+B1J3ilMY8h1f4HAYeCq6ogThL/OjLu68sgq8Oj
Q=="
,
"dependencies"
:
{
"@fingerprintjs/fingerprintjs"
:
"^4.4.0"
,
"uuid"
:
"^9.0.1"
,
...
...
package.json
View file @
fb1d87b0
...
...
@@ -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
"
,
...
...
src/views/Index.vue
View file @
fb1d87b0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment