- Install the predictive model and Python script files into the user environment.
demo_env.install_file(file_path = os.path.join(path_to_files, 'files', 'model.out'), replace = True)
demo_env.install_file(file_path = os.path.join(path_to_files, 'files', 'scoring.py'), replace = True)
Out:
File 'model.out' replaced successfully in the remote user environment 'opaf_my_scoring_env'.
File 'scoring.py' replaced successfully in the remote user environment 'opaf_my_scoring_env'.
- Verify the files have been installed correctly.
demo_env.files
Out:
File Size Timestamp 0 model.out 494848 2024-02-29T21:37:20Z 1 scoring.py 5748 2024-02-29T21:37:15Z