From a0c845f66b9842b2c133c828a262e58f7a30f740 Mon Sep 17 00:00:00 2001 From: Nick Walton Date: Fri, 6 Dec 2019 09:10:16 -0700 Subject: [PATCH] Add files via upload --- AIDungeon_2.ipynb | 86 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 AIDungeon_2.ipynb diff --git a/AIDungeon_2.ipynb b/AIDungeon_2.ipynb new file mode 100644 index 0000000..4750f72 --- /dev/null +++ b/AIDungeon_2.ipynb @@ -0,0 +1,86 @@ +{ + "nbformat": 4, + "nbformat_minor": 0, + "metadata": { + "colab": { + "name": "AIDungeon 2.ipynb", + "provenance": [], + "toc_visible": true + }, + "kernelspec": { + "name": "python3", + "display_name": "Python 3" + }, + "accelerator": "GPU" + }, + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "id": "7dRi_BDWErNf", + "colab_type": "text" + }, + "source": [ + "# AI Dungeon 2\n", + "AI Dungeon 2 is a completely AI generated text adventure built with OpenAI's largest GPT-2 model. It's a first of it's kind game that allows you to enter and will react to any action you can imagine.\n", + "\n", + "## How to play\n", + "1. Click \"Open in playground mode\"\n", + "2. Click \"Tools\"-> \"Settings...\" -> \"Theme\" -> \"Dark\" (optional but recommended)\n", + "3. Click \"Runtime\" -> \"Run all\"\n", + "\n", + "##Links:\n", + "* Read stories from AIDungeon2 at [aidungeon.io](https://www.aidungeon.io)\n", + "* Read more about how AIDungeon2 was made [here](https://pcc.cs.byu.edu/2019/11/21/ai-dungeon-2-creating-infinitely-generated-text-adventures-with-deep-learning-language-models/)\n", + "* If you like playing then please consider [supporting](https://www.patreon.com/join/AIDungeon/) me to allow future improvements to AI Dungeon. \n", + "\n" + ] + }, + { + "cell_type": "code", + "metadata": { + "id": "FKqlSCrpS9dH", + "colab_type": "code", + "outputId": "ec4f9bd8-79c3-4548-c96b-61bb70530a7d", + "colab": { + "base_uri": "https://localhost:8080/", + "height": 34 + } + }, + "source": [ + "!git clone https://github.com/nickwalton/AIDungeon/ \n", + "%cd AIDungeon\n", + "!./install.sh\n", + "from IPython.display import clear_output\n", + "clear_output()\n", + "print(\"Download Complete!\")" + ], + "execution_count": 0, + "outputs": [ + { + "output_type": "stream", + "text": [ + "Download Complete!\n" + ], + "name": "stdout" + } + ] + }, + { + "cell_type": "code", + "metadata": { + "id": "YjArwbWh6XwN", + "colab_type": "code", + "colab": {} + }, + "source": [ + "%cd AIDungeon\n", + "from IPython.display import Javascript\n", + "display(Javascript('''google.colab.output.setIframeHeight(0, true, {maxHeight: 10000})'''))\n", + "!python play.py" + ], + "execution_count": 0, + "outputs": [] + } + ] +} \ No newline at end of file