Skip to content

Instantly share code, notes, and snippets.

@tocttou
Last active August 6, 2016 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tocttou/021c51a9055dea0ac002b7657c01fc25 to your computer and use it in GitHub Desktop.
Save tocttou/021c51a9055dea0ac002b7657c01fc25 to your computer and use it in GitHub Desktop.
import cvfy
# all memory/processor intensive work that is to be done only once (like loading models) goes here
app = cvfy.register("nongh:0.0.0.0:1814173:5001:9001:0.0.0.0")
@cvfy.crossdomain
@app.listen()
def runner():
#do nothing
#here runner is the main function
return 'OK'
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment