xielin пре 5 година
родитељ
комит
ecff0623d1
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      app/Service/DetectionService.php

+ 2 - 2
app/Service/DetectionService.php

@@ -172,14 +172,14 @@ class DetectionService
                 array_push($taskArr, $$task);
             }
             $request->setContent(json_encode(array("tasks" => $taskArr,
-                "scenes" => array("ad", "porn", "terrorism"))));
+                "scenes" => array("porn", "terrorism"))));
         }else if(is_string($img)){
             $task1 = array('dataId' =>  md5(uniqid()),
                 'url' => $img,
                 'time' => round(microtime(true)*1000)
             );
             $request->setContent(json_encode(array("tasks" => array($task1),
-                "scenes" => array("ad", "porn", "terrorism"))));
+                "scenes" => array("porn", "terrorism"))));
         }
         return $this->processResponse($request);
     }