Created
December 14, 2017 08:14
-
-
Save tendstofortytwo/e192457a3f6dffc16c9be83ea10826e5 to your computer and use it in GitHub Desktop.
Origami-lib sendTextArray example
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
import cv2 | |
import origami | |
# all memory/processor intensive work that is to be done only once (like loading models) goes here | |
# replace $TOKEN with your app token generated by web app | |
app = origami.register('$TOKEN') | |
@origami.crossdomain | |
@app.listen() | |
def hello(): | |
origami.sendTextArray(['Hello', 'World!']) | |
return 'OK' | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment