Created
December 7, 2017 02:53
-
-
Save nmwalsh/844a2771d623daf40fb07cd9e51374c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InfoResource(object): | |
def on_get(self, req, resp): | |
"""Handles GET requests""" | |
resp.status = falcon.HTTP_200 # This is the default status | |
resp.body = ('\nThis is an API for a deployed Datmo model, ' | |
'where it takes flower lengths as input and returns the predicted Iris species.\n' | |
'To learn more about this model, send a GET request to the /predicts endpoint or visit the repository online at: \n\n' | |
'https://datmo.com/nmwalsh/falcon-api-model\n\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment