latitudegames / AIDungeon

Infinite adventures await!
http://www.aidungeon.io/
MIT License
3.19k stars 552 forks source link

[Suggestion] Implement the javascript interface (I have a working POC) #122

Open gpt2ent opened 4 years ago

gpt2ent commented 4 years ago

I just wrote a Colab Notebook that proves that it is possible to communicate to GPT-2 via HTML+JS output: repo notebook

Sorry that it is just barebones proof-of-concept, but I feel like it creates a lot of possibilities for GPT-2 based apps.

louisgv commented 4 years ago

Seems promising. I see that the JS side can invoke python function via google.colab.kernel. Would be neat to create a more eye-candy front-end.