Allow disabling images by config

This commit is contained in:
Carlos Bazaga
2025-09-05 22:51:02 +02:00
parent 9c301f8bee
commit 97967e33e9
3 changed files with 21 additions and 13 deletions

View File

@@ -15,7 +15,8 @@ from .storyteller import narrate, set_description_limit
load_dotenv(override=True)
# Choose draw function. (Choose one from the imported ones up there)
# Choose draw function.
# Choose one from the imported ones up there or set to None to disable images.
DRAW_FUNCTION = draw_dalle_2
# Define a sample scene description for testing purposes.
@@ -160,6 +161,7 @@ GAME_CONFIG = Gameplay_Config(
scene_style=SCENE_STYLE,
scene_prompt=SCENE_PROMPT,
storyteller_prompt=STORYTELLER_PROMPT,
disable_img='images/disabled.jpg',
error_img='images/machine.jpg',
error_narrator='NEURAL SINAPSIS ERROR\n\n{ex}\n\nEND OF LINE\n\nRE-SUBMIT_',
error_illustrator='NEURAL PROJECTION ERROR\n\n{ex}\n\nEND OF LINE\n\nRE-SUBMIT_',)