|
|
|
@ -265,11 +265,11 @@ export class InferenceManager implements ICompletions { |
|
|
|
|
// get platform name and return the path to the python script
|
|
|
|
|
let exec_name = '' |
|
|
|
|
if (process.platform === 'win32') { |
|
|
|
|
exec_name = 'InferenceServer_' + process.platform + '.exe' |
|
|
|
|
exec_name = 'InferenceServer-' + process.platform + '.exe' |
|
|
|
|
} else if (process.platform === 'linux') { |
|
|
|
|
exec_name = 'InferenceServer_' + process.platform + '_' + exec_suffix |
|
|
|
|
exec_name = 'InferenceServer-' + process.platform + '_' + exec_suffix |
|
|
|
|
} else if (process.platform === 'darwin') { |
|
|
|
|
exec_name = 'InferenceServer_' + 'mac' |
|
|
|
|
exec_name = 'InferenceServer-' + 'mac' |
|
|
|
|
} else { |
|
|
|
|
throw new Error('Unsupported platform') |
|
|
|
|
} |
|
|
|
|