title: Import data and python scripts in azure ml entry script when deploying models
body: <p>I have an existing machine learning model saved on my local system. I want to deploy this model as a web service so I can consume this model as a request-response i.e. send an HTTP request to the model and get back a predicted response.</p>
  <p>When attempting to deploy this model on AzureML I run into a few problems</p>
  <p>The model needs to be initialized in an entry script int the init() function, but for initializing my model I have a custom class and require few txt files to be loaded.</p>
  <p>below is the code to initialize the model object</p>
  <pre><code>from model_file import MyModelClass  # this is the file which contains the model class
  
  def init():
    global robert_model
  
    my_model = MyModelClass(vocab_path='&lt;path-to-text-files&gt;',
                            model_paths=['&lt;path-to-model-file&gt;'],
                            iterations=5,
                            min_error_probability=0.0,
                            min_probability=0.0,
                            weigths=None)
  def run(json_data):
    try:
      data = json.loads(json_data)
      preds, cnt = my_model.handle_batch([sentence.split()])
      return {'output': pred, 'count': cnt}
    except Exception as e:
      error = str(e)
      return error
  </code></pre>
  <p>I don't know how to import those class files and text files in the entry script</p>
  <p>I don't know much about azure, and I am having a hard time figuring this out. Please help.</p>