more various changes

This commit is contained in:
Nick
2019-04-10 21:34:46 -06:00
parent fb4ab85fc4
commit fd08bf54cc
3 changed files with 10 additions and 8 deletions
+1 -2
View File
@@ -31,8 +31,7 @@ app = Flask(__name__)
# App Info
#gen_ip = "http://35.192.97.36:8010/"
gen_ip = "http://0.0.0.0:8090"
gen_ip = "http://35.192.97.36:8010"
phrases = [" You attack", " You use", " You tell", " You go"]
prompts = ["You enter a dungeon with your trusty sword and shield. You are searching for the evil necromancer who killed your family. You've heard that he resides at the bottom of the dungeon, guarded by legions of the undead. You enter the first door and see"]
requested_map = {}
+8 -5
View File
@@ -62,11 +62,14 @@ var StoryTracker = {
},
actionWait:function(){
if(action_waiting == true || typing){
setTimeout(StoryTracker.actionWait, 4000);
}
else{
Typer.appendToText(" Generating...")
if(action_waiting == true){
if(typing == true || acceptInput == true){
setTimeout(StoryTracker.actionWait, 5000);
}
else{
Typer.appendToText(" Generating...")
}
}
},
+1 -1
View File
@@ -10,7 +10,7 @@
<div class="about">
<h2> About AI Dungeon </h2>
<text>
AIDungeon is an AI generated text adventure that uses deep learning to create each adventure. It uses OpenAI's new <a href="https://openai.com/blog/better-language-models/">GPT-2 model</a>, which has 117 million parameters, to generate each story block and possible action.
AI Dungeon is an AI generated text adventure that uses deep learning to create each adventure. It uses OpenAI's new <a href="https://openai.com/blog/better-language-models/">GPT-2 model</a>, which has 117 million parameters, to generate each story block and possible action.
<br><br> The first couple sentences of AIDungeon and the action verbs are handcrafted, but everything else is not. Each time an option is chosen, the initial prompt, the last story block, and the last action are fed into the neural network. The resulting story and action options are then output by the model.