Skip to content

Commit 009c8a0

Browse files
author
okajax
committed
add env example, update readme
1 parent 38f7343 commit 009c8a0

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

README.md

+14-6
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,34 @@ See also [my article[Japanese]](https://qiita.com/okajax/items/b85dea2a97b0d82cd
66

77
## Get started
88

9-
### Requirements
9+
### 1. Requirements
1010

1111
- Python 3.6
1212
- pipenv
1313
- Azure Blob Storage (for ONNX Model, Labels dictonary JSON)
1414

15-
### Set a environment variable
15+
### 2. Set a environment variable
16+
17+
#### For local development
1618

1719
```
1820
$ cp local.setting.example.json local.setting.json
1921
```
2022

2123
And, set a connect string for your Blob Storage account.
2224

23-
```
25+
```local.setting.json
2426
"Values": {
2527
"BLOB_CONNECTION_STRING": "<your_connect_string>"
2628
}
2729
```
2830

31+
#### For cloud
32+
33+
Edit settings on Azure.
2934

30-
### Replace codes for your project.
35+
36+
### 3. Replace codes for your project
3137

3238
#### HttpTrigger/__init__.py
3339
```HttpTrigger/__init__.py
@@ -40,14 +46,16 @@ And, set a connect string for your Blob Storage account.
4046
deploy = "func azure functionapp publish <your_project> --python"
4147
```
4248

43-
### Run :rocket:
49+
### 4. Run :rocket:
4450

4551
```
4652
$ pipenv install # if you hav trouble, just do it. $ pipenv --three --python=`which python3`
4753
$ pipenv run start
4854
```
4955

50-
### Deploy to cloud :zap:
56+
POST a image to endpoint :+1:
57+
58+
### 5. Deploy to cloud :zap:
5159

5260
```
5361
$ pipenv run deploy

local.settings.example.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"IsEncrypted": false,
3+
"Values": {
4+
"BLOB_CONNECTION_STRING": "<your_connect_string>"
5+
}
6+
}

0 commit comments

Comments
 (0)