mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-09 11:13:26 +08:00
ascii art
This commit is contained in:
+10
-2
@@ -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
@@ -0,0 +1,11 @@
|
||||
|
||||
▄▄▄ ██▓ ▓█████▄ █ ██ ███▄ █ ▄████ ▓█████ ▒█████ ███▄ █
|
||||
▒████▄ ▓██▒ ▒██▀ ██▌ ██ ▓██▒ ██ ▀█ █ ██▒ ▀█▒▓█ ▀ ▒██▒ ██▒ ██ ▀█ █
|
||||
▒██ ▀█▄ ▒██▒ ░██ █▌▓██ ▒██░▓██ ▀█ ██▒▒██░▄▄▄░▒███ ▒██░ ██▒▓██ ▀█ ██▒
|
||||
░██▄▄▄▄██ ░██░ ░▓█▄ ▌▓▓█ ░██░▓██▒ ▐▌██▒░▓█ ██▓▒▓█ ▄ ▒██ ██░▓██▒ ▐▌██▒
|
||||
▓█ ▓██▒░██░ ░▒████▓ ▒▒█████▓ ▒██░ ▓██░░▒▓███▀▒░▒████▒░ ████▓▒░▒██░ ▓██░
|
||||
▒▒ ▓▒█░░▓ ▒▒▓ ▒ ░▒▓▒ ▒ ▒ ░ ▒░ ▒ ▒ ░▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▒░ ▒ ▒
|
||||
▒ ▒▒ ░ ▒ ░ ░ ▒ ▒ ░░▒░ ░ ░ ░ ░░ ░ ▒░ ░ ░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ░ ▒░
|
||||
░ ▒ ▒ ░ ░ ░ ░ ░░░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░
|
||||
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
|
||||
░
|
||||
Reference in New Issue
Block a user