huoshan/test.js

24 lines
594 B
JavaScript
Raw Normal View History

2024-10-13 11:55:28 +08:00
import {image} from 'apigo.cc/ai/huoshan'
2024-10-02 17:35:29 +08:00
function main() {
2024-10-13 11:55:28 +08:00
let a = image.image2image(image.base64(image.readImage("img_2.jpeg")), "在吃冰淇淋", {
2024-10-02 17:35:29 +08:00
style_reference_args: {
id_weight: 1.0
}
})
let b = image.image2image(image.readImage("img_2.jpeg"), "在吃冰淇淋", {
style_reference_args: {
id_weight: 1.0
}
})
2024-10-13 11:55:28 +08:00
let c = image.image2image(["一个url"], "在吃冰淇淋", {
2024-10-02 17:35:29 +08:00
style_reference_args: {
id_weight: 1.0
}
})
return {
a: a,
b: b,
c: c
}
}