Skip to content

Instantly share code, notes, and snippets.

@tocttou
Created August 6, 2016 16:08
Show Gist options
  • Save tocttou/403196805e33af9d7fe0900e7ee5c4c2 to your computer and use it in GitHub Desktop.
Save tocttou/403196805e33af9d7fe0900e7ee5c4c2 to your computer and use it in GitHub Desktop.
import cvfy
app = cvfy.register("nongh:0.0.0.0:6391972:3000:8005:0.0.0.0")
@cvfy.crossdomain
@app.listen()
def runner():
cvfy.sendTextArrayToTerminal(['This data will be sent before output is injected in ', 'Output Component']);
cvfy.sendImageArray(['/home/abc.png', '/tmp/123.png'])
cvfy.sendTextArrayToTerminal(['This data will be sent after output is injected in ', 'Output Component']);
return 'OK'
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment