update path

This commit is contained in:
2023-02-05 13:31:49 +10:00
parent a2894791e2
commit 9404df9a1d

View File

@@ -176,7 +176,7 @@ class OCRController extends ApiController
imagedestroy($imgcreate);
// keras
$cmd = "python3 scripts/keras.py " . base64_encode(file_get_contents($tmpfname));
$cmd = 'python3 ' . base_path() . '/scripts/keras.py ' . base64_encode(file_get_contents($tmpfname));
$command = escapeshellcmd($cmd); #no special characters it will work
$data['ocr']['keras'] = shell_exec($command);