Dung Diego

up

......@@ -36,7 +36,6 @@ public function import_pdf(Request $request){
public function ocr_process($request){
set_time_limit(0);
ini_set('max_execution_time', 0);
$mount_path=env('PYTHON_SERVICE_MOUNT_PATH','');
$ocr_serve_path=env('OCR_SERVER_PATH','');
$ocr_storage='ocr_results';
if($ocr_serve_path) $ocr_storage='ocr_results_sftp';
......@@ -51,15 +50,6 @@ public function ocr_process($request){
$ch = curl_init();
Storage::disk('ocr_results')->makeDirectory($now);
chmod(Storage::disk('ocr_results')->path($now), 0777);
if(!empty($mount_path)){
$file_path = str_replace('/', '\\', str_replace(
'/mnt/ocr',
$mount_path,
$file_path
));
}
$params = [
'file_path' => $file_path,
];
......