mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 05:50:50 +00:00
28 lines
524 B
PHP
28 lines
524 B
PHP
<?php
|
||
require('../../../vendor/autoload.php');
|
||
use Volc\Service\Visual;
|
||
|
||
$client = Visual::getInstance();
|
||
// call below method if you dont set ak and sk in ~/.volc/config
|
||
|
||
$client->setAccessKey($ak);
|
||
$client->setSecretKey($sk);
|
||
|
||
echo "\nDemo FaceswapAI\n";
|
||
|
||
$body = [
|
||
"req_key" => "faceswap_ai",
|
||
"image_urls"=> [
|
||
"https://xxx",
|
||
"https://xxx"
|
||
],
|
||
"gpen"=>0.9,
|
||
"skin"=>0.9,
|
||
"do_risk"=>False,
|
||
"tou_repair"=>1
|
||
|
||
];
|
||
$response = $client->FaceswapAI(['json' => $body]);
|
||
echo $response;
|
||
|