@Guilherme Takata Thanks for the question. Here are the instructions to Use the studio to deploy models trained in the designer - Azure Machine Learning | Microsoft Learn and document that explains how we can get access to score.py and conda_env.yaml files under Output + logs tab for Train module.
Trouble downloading and loading files in python script module
I'm currently trying to create an endpoint in Azure ML studio designer, I'm trying to download a ML model pickle file from a blob container and use it in the pipeline to make predictions in new data. But when I try to download the file and load into the script I always get an error. Here follows the code snippet I'm trying to run and the error returned.
Code Snippet
origin = dataframe1['Key'].unique()[0].lower()
run = Run.get_context(allow_offline = True)
ws = run.experiment.workspace
datastore = Datastore(ws, 'models_datastore')
datastore.download('Downloads//', prefix = 'Model_{origin}//vectorizer.pkl')
model = pickle.load(open('Downloads//vectorizer.pkl', 'rb'))
Error returned
Got exception when invoking script at line 23 in function azureml_main: 'FileNotFoundError: [Errno 2] No such file or directory: 'Downloads//vectorizer.pkl''.