5
$\begingroup$

I am new to deployment and have a basic doubt about deploying my ML code on client's vm.

So I have built a python project which collects data from client site, processing, predicts and displays the result in dashboard. I have to use client VMs for deployment. Is there a way for me to hide the code or do something to it so that client cannot see my code and reuse my code for other purposes.

Might sound trivial but really stuck at this. Thanks in advance.

$\endgroup$

1 Answer 1

3
$\begingroup$

You can transform your python code into a standalone binary file, which could for example take as input some data and return the predicted labels. If you only put this file in the client's VM and not the .py files, the client could never see the code, but just execute it.

Several libraries exist for this purpose like pyinstaller

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.