Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test api #1

Open
wants to merge 169 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
f0a1eb6
change input
jack80806 Jun 16, 2023
16052cd
delete some doc
jack80806 Jun 16, 2023
de36883
delete some doc
jack80806 Jun 16, 2023
d028788
Update __init__.py
jack80806 Jun 16, 2023
c2927a3
Update model.py
jack80806 Jun 16, 2023
b458bf0
result
jack80806 Jun 16, 2023
4985696
Merge branch 'master' of https://github.com/jack80806/Flask-API-examp…
jack80806 Jun 16, 2023
6041b7a
result
jack80806 Jun 16, 2023
e263707
config
jack80806 Jun 16, 2023
4a5f5b0
config
jack80806 Jun 16, 2023
9f53903
post string
jack80806 Jun 16, 2023
c110dbb
new flag
jack80806 Jun 16, 2023
0448e88
test jsonify
jack80806 Jun 16, 2023
1cb73e2
test json 2
jack80806 Jun 16, 2023
641fb53
test func
jack80806 Jun 16, 2023
43181b5
just one post
jack80806 Jun 16, 2023
e7d766c
result
jack80806 Jun 16, 2023
082a6ba
result =1
jack80806 Jun 16, 2023
a71f8e3
{}
jack80806 Jun 16, 2023
230148b
Update __init__.py
jack80806 Jun 16, 2023
f4932d0
new test2
jack80806 Jun 16, 2023
5e83835
new test2
jack80806 Jun 16, 2023
348cfc7
forTest3
jack80806 Jun 16, 2023
dd9c916
basicInfo&message
jack80806 Jun 16, 2023
382f1d2
testForFlag
jack80806 Jun 16, 2023
3aabf80
for [ ]
jack80806 Jun 16, 2023
0b96a22
testBranch
jack80806 Jun 16, 2023
381225a
symptoms
jack80806 Jun 16, 2023
b018833
fucEror
jack80806 Jun 16, 2023
6fb00c5
forClinic
jack80806 Jun 16, 2023
4af5ca1
new for clinic
jack80806 Jun 16, 2023
c9341a2
nextstep
jack80806 Jun 16, 2023
1da79c9
partial test
jack80806 Jun 16, 2023
8f2bd1f
,
jack80806 Jun 16, 2023
921912c
delete model.py
jack80806 Jun 17, 2023
1d4a749
delete basicInfo in records
jack80806 Jun 17, 2023
784bc2c
Merge branch 'testAPI'
jack80806 Jun 17, 2023
f2dceb3
flag位置
jack80806 Jun 17, 2023
4a523dc
test flag
jack80806 Jun 18, 2023
b8b800c
changeFlag
jack80806 Jun 18, 2023
c0f845c
getflag
jack80806 Jun 18, 2023
c30388a
get flag
jack80806 Jun 18, 2023
ae4e5d5
Merge branch 'testAPI'
jack80806 Jun 18, 2023
2765231
GET to POST
jack80806 Jun 18, 2023
df0e8e0
fastAPI
jack80806 Jun 18, 2023
18097dd
fast API
jack80806 Jun 18, 2023
656e814
starlette
jack80806 Jun 18, 2023
6b35590
requirements
jack80806 Jun 18, 2023
ce502fe
fastAPI
jack80806 Jun 18, 2023
abc5913
test get info
jack80806 Jun 18, 2023
37c0064
die
jack80806 Jun 18, 2023
99e2a14
test API
jack80806 Jun 18, 2023
54351cd
for flag
jack80806 Jun 18, 2023
c533856
for null to 0
jack80806 Jun 18, 2023
5d4c101
symptoms
jack80806 Jun 18, 2023
8da9e0c
test basicInfo
jack80806 Jun 18, 2023
21e0f53
test userdata
jack80806 Jun 18, 2023
2b2d595
test output
jack80806 Jun 18, 2023
4a2c4b7
test encoder
jack80806 Jun 18, 2023
838f69d
test flag
jack80806 Jun 18, 2023
bef876f
test
jack80806 Jun 18, 2023
3a30747
all del
jack80806 Jun 18, 2023
e7b2fc8
test
jack80806 Jun 18, 2023
11d0f89
test
jack80806 Jun 18, 2023
f5abe36
correct
jack80806 Jun 18, 2023
4aa0cc7
add userID
jack80806 Jun 18, 2023
80b9d1d
test symptoms
jack80806 Jun 18, 2023
37b4e12
fix userID
jack80806 Jun 18, 2023
2d67672
forclinic
jack80806 Jun 18, 2023
33ca019
records
jack80806 Jun 18, 2023
aa0761d
test auto change flag
jack80806 Jun 18, 2023
5b0f1d3
test erro
jack80806 Jun 18, 2023
064aec2
test erro
jack80806 Jun 18, 2023
4ea9042
test erro
jack80806 Jun 18, 2023
8eb45f9
Merge branch 'testAPI'
jack80806 Jun 18, 2023
89aa6fc
finish reset flag
jack80806 Jun 18, 2023
1d531e0
change flag
jack80806 Jun 19, 2023
2adc0a6
set flag name
jack80806 Jun 19, 2023
2db7287
changeAllFlag
jack80806 Jun 19, 2023
a08a55e
changeAllFlag
jack80806 Jun 19, 2023
0ef010d
debug
jack80806 Jun 19, 2023
8c13b83
flag
jack80806 Jun 19, 2023
3c2adec
return
jack80806 Jun 19, 2023
ab9d983
result
jack80806 Jun 19, 2023
b6115cb
123
jack80806 Jun 19, 2023
f974e88
123
jack80806 Jun 19, 2023
e909913
return
jack80806 Jun 19, 2023
86c58b0
debug
jack80806 Jun 19, 2023
434ab34
debug
jack80806 Jun 19, 2023
b43589f
name
jack80806 Jun 19, 2023
7ea0fc1
OK
jack80806 Jun 19, 2023
156e407
del rec cli Cflag
jack80806 Jun 20, 2023
1a7e7df
for clinic
jack80806 Jun 20, 2023
985128f
forClinic
jack80806 Jun 20, 2023
638fe90
123
jack80806 Jun 20, 2023
46a6bf5
test clinic
jack80806 Jun 20, 2023
53c6b65
test double result
jack80806 Jun 20, 2023
e7ec556
debug
jack80806 Jun 20, 2023
7f043ed
userid
jack80806 Jun 20, 2023
5f06cb0
records
jack80806 Jun 20, 2023
263ce6f
records
jack80806 Jun 20, 2023
d09447b
clinic
jack80806 Jun 20, 2023
e075478
for update
jack80806 Jun 20, 2023
cfb2e27
debug update
jack80806 Jun 20, 2023
e4484d1
debug update
jack80806 Jun 20, 2023
03fca95
for test
jack80806 Jun 20, 2023
7996f14
123
jack80806 Jun 20, 2023
0a9209d
234
jack80806 Jun 20, 2023
e7fefd9
2222
jack80806 Jun 20, 2023
b082973
dddd
jack80806 Jun 20, 2023
0623f21
3333
jack80806 Jun 20, 2023
3d3ac92
11111
jack80806 Jun 20, 2023
07fa7e7
123123
jack80806 Jun 20, 2023
0991d98
debug
jack80806 Jun 20, 2023
7395371
4444
jack80806 Jun 20, 2023
c29389d
3333333
jack80806 Jun 20, 2023
7bd9aa9
RRRRRRRRRRRRRRRRRRRRRR
jack80806 Jun 20, 2023
d949480
change var
jack80806 Jun 21, 2023
7f3f12e
for clinic
jack80806 Jun 21, 2023
4345389
debug
jack80806 Jun 21, 2023
3d19cce
test clinic
jack80806 Jun 21, 2023
c2b7c09
test clinic tem
jack80806 Jun 21, 2023
f2c2f98
123
jack80806 Jun 21, 2023
7739db6
clinic return
jack80806 Jun 21, 2023
df8e4dc
delete userID
jack80806 Jun 21, 2023
fe92022
TEST
jack80806 Jun 21, 2023
c55aa87
ttttt
jack80806 Jun 21, 2023
1e49e4b
ttttttttttttttt
jack80806 Jun 21, 2023
1ed9166
zzzzzzzzzzzzzzzzzzzzzzzzzzzz
jack80806 Jun 21, 2023
1858e14
test R
jack80806 Jun 21, 2023
e09ed83
testRRR
jack80806 Jun 21, 2023
d021798
2132
jack80806 Jun 21, 2023
7a0cc6b
bookfish
jack80806 Jun 21, 2023
b0187f6
ssssssssssss
jack80806 Jun 21, 2023
a171e34
ssssssssssssss
jack80806 Jun 21, 2023
5a3ab89
sssssssssssssssssssss
jack80806 Jun 21, 2023
1ab4d5a
Wait
jack80806 Jun 21, 2023
de0aeff
ID
jack80806 Jun 21, 2023
6ffd8fa
symptoms delte
jack80806 Jun 21, 2023
a0bb2f8
delte symptoms' flag
jack80806 Jun 21, 2023
7fbd9c4
debug symptos
jack80806 Jun 21, 2023
298c699
debug
jack80806 Jun 21, 2023
d1d842d
for clinic
jack80806 Jun 21, 2023
ab27a4f
change result
jack80806 Jun 21, 2023
5ee6e44
del flag
jack80806 Jun 21, 2023
16d1ecd
FFFFFFFFFFFFF
jack80806 Jun 21, 2023
830d740
EEEEEEEEEEEEEEEEEEE
jack80806 Jun 21, 2023
a97b388
aaaaaaaaaaaaaaaaaaaa
jack80806 Jun 21, 2023
94b96fe
for multi
jack80806 Jun 22, 2023
19e57ca
11111111111111
jack80806 Jun 22, 2023
8ea8cdc
multiuser
jack80806 Jun 22, 2023
e3c122c
sssssssssssssss
jack80806 Jun 22, 2023
02a8948
123123123
jack80806 Jun 22, 2023
8a0045a
xxxxxxxxxxxxxxxxxxxxx
jack80806 Jun 22, 2023
4741feb
sssssssssssssssssssssss
jack80806 Jun 22, 2023
b9bd337
multi OK
jack80806 Jun 23, 2023
22ebf2e
multi OK
jack80806 Jun 23, 2023
bc780a5
ssssssssssssssss
jack80806 Jun 23, 2023
6ee1081
ssssssssss
jack80806 Jun 23, 2023
15be1f3
ddddddddddddddd
jack80806 Jun 23, 2023
7aa570f
json
jack80806 Jun 23, 2023
5d38292
aaaaaaaaaaaaa
jack80806 Jun 23, 2023
0e4cf5e
aaaaaaaaaaaaaa
jack80806 Jun 23, 2023
a31aea5
aaaaaaaaaaaaaaaa
jack80806 Jun 23, 2023
10c058f
test loop
jack80806 Jul 4, 2023
3071d00
deque
jack80806 Jul 4, 2023
24464aa
deque pop to remove
jack80806 Jul 4, 2023
bd49109
get basic Info dequeue
jack80806 Jul 7, 2023
39042b2
testInfo
jack80806 Jul 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.ipynb_checkpoints
__pycache__
.DS_Store
venv
*.pyc
staticfiles
.env
db.sqlite3
getting-started/*
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web gunicorn run:app
web: uvicorn src.main:app --host=0.0.0.0 --port=${PORT:-5000}
17 changes: 1 addition & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1 @@
# Heroku 部署機器學習 API
此範例使用鳶尾花朵資料集進行 `XGBoost` 分類器模型訓練。將模型儲存起來,並使用 Flask 建置 API 介面提供輸入值預測。最後並部署到 Heroku 雲端伺服器平台。

## Getting Started
### Fork Project
你可以直接 Fork 此專案到你自己的 GitHub 帳號中,並採用 Heroku 連動 GitHub 專案的方式部署此 API 範例。

### Fork 專案到自己的 GitHub 帳號中

![](https://i.imgur.com/CEURaEi.png)

### 建立一個 Heroku 帳號並新增一個專案

[傳送門](https://dashboard.heroku.com/apps)

![](https://i.imgur.com/QYjg4JR.png)
TEST
14 changes: 14 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "Start on Heroku: Python",
"description": "A barebones Python app, which can easily be deployed to Heroku.",
"image": "heroku/python",
"repository": "https://github.com/Hedde/fastapi-heroku-test",
"keywords": ["python", "fastapi" ],
"env": {
},
"environments": {
"test": {
"scripts": {}
}
}
}
29 changes: 0 additions & 29 deletions app/__init__.py

This file was deleted.

13 changes: 0 additions & 13 deletions app/model.py

This file was deleted.

Binary file removed app/model/xgboost-iris.pgz
Binary file not shown.
15 changes: 10 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Flask
Flask-Cors
Click
fastapi
gunicorn
numpy
scikit-learn==0.24.2
xgboost==0.90
h11
httptools
pydantic
starlette
uvicorn
uvloop
websockets
requests
9 changes: 0 additions & 9 deletions run.py

This file was deleted.

1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.11.1
Empty file added src/__init__.py
Empty file.
Loading