Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Commit

Permalink
Merge pull request #31 from Azure/add-import-statements
Browse files Browse the repository at this point in the history
Add imports to readme to avoid confusion.
  • Loading branch information
crwilcox committed Sep 27, 2017
2 parents 4204e2b + e8681ca commit f5239eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -307,6 +307,8 @@ Publishing
Python functions can either be published using the @publish decorator or by calling the publish method directly. To publish a function using the decorator you can do:

```python
from azureml import services

@services.publish(workspace, workspace_token)
@services.types(a = float, b = float)
@services.returns(float)
Expand Down Expand Up @@ -364,6 +366,8 @@ Consumption
Existing services can be consumed using the service decorator. An empty function body is supplied and the resulting function becomes invokable and calls the published service:

```python
from azureml import services

@services.service(url, api_key)
@services.types(a = float, b = float)
@services.returns(float)
Expand Down

0 comments on commit f5239eb

Please sign in to comment.