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

Modify the Endpoint in README.md from '/prediction' to '/predictions'. #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ User pulls only the necessary code into a separate function in prediction.py whi
!FLASK_APP=wsgi.py flask run
```
1. Test the local Flask app (test_flask.ipynb provided) running on your notebook server. Both curl commands and python code will be provided.
!curl -X POST -H "Content-Type: application/json" --data '{"data": "hello world"}' http://localhost:5000/prediction
!curl -X POST -H "Content-Type: application/json" --data '{"data": "hello world"}' http://localhost:5000/predictions
1. Stop the flask app when complete. (Click the stop button in run_flask.ipynb)
1. Save code to GitHub using push. Be sure to include all relevant models, prediction python files, and any pertinent notebooks.
1. Click GitHub plugin
Expand All @@ -119,6 +119,6 @@ To test changes, the application must be rebuilt and redeployed.If a webhook was
#### Test deployed application endpoint
The application's service endpoint can be tested using cURL or python code from Jupyter notebooks or the terminal.
```
!curl -X POST -H "Content-Type: application/json" --data '{"data": "hello world"}' http://rhods-project.apps.cluster/prediction
!curl -X POST -H "Content-Type: application/json" --data '{"data": "hello world"}' http://rhods-project.apps.cluster/predictions
```