Skip to content

Commit

Permalink
Improved predict examples
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelschwier committed Aug 15, 2018
1 parent a160950 commit 0db1c1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/modelhubapi/restapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,16 @@ def predict(self):
specification in the model configuration (see :func:`~get_model_io`)
URL must not contain any arguments and should end with the file
extension.
GET Example: :code:`curl -X GET http://localhost:80/api/predict?fileurl=<URL_OF_FILE>`
POST method
Args:
file: Input file with data for prediction. Input type must match
specification in the model configuration (see :func:`~get_model_io`)
POST Example: :code:`curl -i -X POST -F file=@<PATH_TO_FILE> "<URL>"`
POST Example: :code:`curl -i -X POST -F file=@<PATH_TO_FILE> http://localhost:80/api/predict`
"""
try:
# through URL
Expand Down

0 comments on commit 0db1c1a

Please sign in to comment.