When loading a story from the splash screen, print the result with console_print
Use a single blank line to separate play actions and game response, both during gameplay and when using the /print command.
Make changes to how \n is wrapped around player action. This fixes a bug where inputs that start with " is store without the extra line breaks. This will cause latest_result to blend preceding and succeeding lines together.
https://github.com/thadunge2/AIDungeon/blob/916fe1eea4e4e5271d1fb40dfa22af9302e21517/story/story_manager.py#L74
As the output of latest_result is eventually used by GPT2Generator, the incorrect formatting may contribute to the likelihood of lower quality generated result.
This pull request contains the following changes:
console_print
\n
is wrapped around player action. This fixes a bug where inputs that start with"
is store without the extra line breaks. This will causelatest_result
to blend preceding and succeeding lines together. https://github.com/thadunge2/AIDungeon/blob/916fe1eea4e4e5271d1fb40dfa22af9302e21517/story/story_manager.py#L74 As the output oflatest_result
is eventually used byGPT2Generator
, the incorrect formatting may contribute to the likelihood of lower quality generated result.