No hardcoded path/config management — values scattered across files #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Configuration values are hardcoded throughout the codebase with no centralized config:
"runwayml/stable-diffusion-v1-5"card_generator_adapter.py:41"en_core_web_sm"keyword_extractor.py"cuda"app.py:38(hardcoded device)MAX_SETS = 10000fetch_card.py:22MAX_CARDS_PER_SET = 10000fetch_card.py:23MAX_WORKERS = 8fetch_card.py:26num_inference_steps=30prompt_to_card_pipeline.py:276guidance_scale=7.5prompt_to_card_pipeline.py:277Problems
app.pyhardcodes--device cuda— will fail on CPU-only machinesFix
Create a
config.pyor use environment variables: