Unfortunately I'm not sure there's much of an alternative here. If you want to capture more value you could have gone and done your own startup, but of course you would have needed access to data/code for your machine learning to learn off of, which may not have been possible outside of GitHub.
Can anyone think of some other pathway, other than trying to negotiate for more compensation, after proof of concept is delivered?