ascii art

This commit is contained in:
Nick Walton
2019-11-18 17:35:20 -07:00
parent c7892d1bcd
commit cb80c5fdde
2 changed files with 21 additions and 2 deletions
+10 -2
View File
@@ -1,7 +1,7 @@
from story.story_manager import *
from generator.gpt2.gpt2_generator import *
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
def console_print(text, width=75):
last_newline = 0
@@ -17,12 +17,20 @@ def console_print(text, width=75):
def play_unconstrained():
print("Initializing AI Dungeon! (This might take a few minutes)")
generator = GPT2Generator()
prompt = get_story_start("knight")
context = get_context("knight")
story_manager = UnconstrainedStoryManager(generator)
print("Generating initial story.")
story_manager.start_new_story(prompt, context=context)
with open('opening.txt', 'r') as file:
starter = file.read()
print(starter)
print("\n")
console_print(context)
console_print(str(story_manager.story))
+11
View File
@@ -0,0 +1,11 @@
▄▄▄ ██▓ ▓█████▄ █ ██ ███▄ █ ▄████ ▓█████ ▒█████ ███▄ █
▒████▄ ▓██▒ ▒██▀ ██▌ ██ ▓██▒ ██ ▀█ █ ██▒ ▀█▒▓█ ▀ ▒██▒ ██▒ ██ ▀█ █
▒██ ▀█▄ ▒██▒ ░██ █▌▓██ ▒██░▓██ ▀█ ██▒▒██░▄▄▄░▒███ ▒██░ ██▒▓██ ▀█ ██▒
░██▄▄▄▄██ ░██░ ░▓█▄ ▌▓▓█ ░██░▓██▒ ▐▌██▒░▓█ ██▓▒▓█ ▄ ▒██ ██░▓██▒ ▐▌██▒
▓█ ▓██▒░██░ ░▒████▓ ▒▒█████▓ ▒██░ ▓██░░▒▓███▀▒░▒████▒░ ████▓▒░▒██░ ▓██░
▒▒ ▓▒█░░▓ ▒▒▓ ▒ ░▒▓▒ ▒ ▒ ░ ▒░ ▒ ▒ ░▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▒░ ▒ ▒
▒ ▒▒ ░ ▒ ░ ░ ▒ ▒ ░░▒░ ░ ░ ░ ░░ ░ ▒░ ░ ░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ░ ▒░
░ ▒ ▒ ░ ░ ░ ░ ░░░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░