From e85ad109535cbb478ad49d510d10d33a794f631a Mon Sep 17 00:00:00 2001 From: Michael Pang Date: Mon, 9 Dec 2019 09:43:49 -0500 Subject: [PATCH 1/5] windows compat removes termios --- play.py | 3 +-- play_dm.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/play.py b/play.py index 211efcd..b42d5af 100644 --- a/play.py +++ b/play.py @@ -1,7 +1,6 @@ from story.story_manager import * from generator.gpt2.gpt2_generator import * from story.utils import * -from termios import tcflush, TCIFLUSH import time, sys, os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" @@ -93,7 +92,7 @@ def play_aidungeon_2(): print("\n") console_print(str(story_manager.story)) while True: - tcflush(sys.stdin, TCIFLUSH) + sys.stdin.flush() action = input("> ") if action == "restart": rating = input("Please rate the story quality from 1-10: ") diff --git a/play_dm.py b/play_dm.py index abcacd1..59758e2 100644 --- a/play_dm.py +++ b/play_dm.py @@ -2,7 +2,6 @@ from story.story_manager import * from generator.human_dm import * from generator.gpt2.gpt2_generator import * from story.utils import * -from termios import tcflush, TCIFLUSH from play import * import time, sys, os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" From eac6d3718a8a677f3659108b336fde6a17b3a71b Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 9 Dec 2019 10:04:36 -0700 Subject: [PATCH 2/5] update ipynb notebook with link / comment changes --- AIDungeon_2.ipynb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/AIDungeon_2.ipynb b/AIDungeon_2.ipynb index 4a53e1d..49c66a1 100644 --- a/AIDungeon_2.ipynb +++ b/AIDungeon_2.ipynb @@ -27,22 +27,23 @@ "> 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", "# Main mirrors of AI Dungeon 2 are currently down due to high download costs.\n", - "We are using bittorrent as a temporary solution to host game files and keep this game alive. It's not fast, but it's the best we've got right now.\n\n", - "If you want to help, best thing you can do is to **[download this torrent file with game files](https://github.com/nickwalton/AIDungeon/files/3935881/model_v5.torrent.zip)** and **seed it** indefinitely to the best of your ability. This will help new players download this game faster, and discover the vast worlds of AIDungeon2!\n\n", - "- Follow @nickwalton00 on twitter for updates on when it will be available again.\n", - "- **[Support AI Dungeon 2 on Patreon to help get it back up!](https://www.patreon.com/posts/update-32193930)**\n", + "We are using bittorrent as a temporary solution to host game files and keep this game alive. It's not fast, but it's the best we've got right now.\n", + "\n", + "If you want to help, best thing you can do is to **[download this torrent file with game files](https://github.com/nickwalton/AIDungeon/files/3935881/model_v5.torrent.zip)** and **seed it** indefinitely to the best of your ability. This will help new players download this game faster, and discover the vast worlds of AIDungeon2!\n", + "\n", + "- Follow @nickwalton00 on Twitter for updates on when it will be available again.\n", + "- **[Support AI Dungeon 2](https://www.patreon.com/posts/update-32193930) on Patreon**\n", "\n", "## How to play\n", "1. Click \"Tools\"-> \"Settings...\" -> \"Theme\" -> \"Dark\" (optional but recommended)\n", "2. Click \"Runtime\" -> \"Run all\"\n", "3. Wait until all files are downloaded (only has to be one once, and it will take some time)\n", "4. It will then take a couple minutes to boot up as the model is downloaded loaded onto the GPU. \n", + "5. If you have questions about getting it to work then please [go to github repo](https://github.com/AIDungeon/AIDungeon) to get help. \n", "\n", "## About\n", "* While you wait you can [read adventures others have had](https://aidungeon.io/)\n", - "* [Read more](https://pcc.cs.byu.edu/2019/11/21/ai-dungeon-2-creating-infinitely-generated-text-adventures-with-deep-learning-language-models/) about how AI Dungeon 2 is made.\n", - "\n", - "* Please [support AI Dungeon 2](https://www.patreon.com/join/AIDungeon/) to help get it back up." + "* [Read more](https://pcc.cs.byu.edu/2019/11/21/ai-dungeon-2-creating-infinitely-generated-text-adventures-with-deep-learning-language-models/) about how AI Dungeon 2 is made." ] }, { @@ -79,4 +80,4 @@ "outputs": [] } ] -} +} \ No newline at end of file From 42066cc02a56ff9f9aa75afb834ee0b00453d12a Mon Sep 17 00:00:00 2001 From: Benjamin Bay <48391872+ben-bay@users.noreply.github.com> Date: Mon, 9 Dec 2019 10:29:01 -0800 Subject: [PATCH 3/5] Add issue templates --- .github/ISSUE_TEMPLATE/bug-report.md | 29 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 ++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug-report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md new file mode 100644 index 0000000..41f951d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -0,0 +1,29 @@ +--- +name: Bug report +about: Create a report to help us improve +title: "[BUG] " +labels: bug +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Additional context** +- OS, environment +- Game settings +- Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..11fc491 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: enhancement +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. From e943f685724a0ee50c83a43ebcdf44556b35a415 Mon Sep 17 00:00:00 2001 From: Benjamin Bay <48391872+ben-bay@users.noreply.github.com> Date: Mon, 9 Dec 2019 10:33:08 -0800 Subject: [PATCH 4/5] Update issue templates --- .github/ISSUE_TEMPLATE/feature-request.md | 20 ++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/ISSUE_TEMPLATE/feature-request.md diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md new file mode 100644 index 0000000..8403b86 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: "[FEATURE] " +labels: enhancement +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 11fc491..8403b86 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,7 +1,7 @@ --- name: Feature request about: Suggest an idea for this project -title: '' +title: "[FEATURE] " labels: enhancement assignees: '' From 6650f780a9e38dcdc3a3583251ddf8b9ca8900e8 Mon Sep 17 00:00:00 2001 From: Benjamin Bay <48391872+ben-bay@users.noreply.github.com> Date: Mon, 9 Dec 2019 14:04:21 -0800 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e2eb78f..f94b43d 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ To play the game locally, it is recommended that you have an nVidia GPU with 12 git clone https://github.com/AIDungeon/AIDungeon/ cd AIDungeon ./install.sh -python play.py +python3 play.py ```