Update concept_map_generator.py
Browse files3 unmodified lines45678910111213141516171856 unmodified lines75767778798081823 unmodified linesimport osfrom graph_generator_utils import add_nodes_and_edgesdef generate_concept_map(json_input: str, base_color: str) -> str: # base_color is now correctly used"""Generates a concept map from JSON input.Args:json_input (str): A JSON string describing the concept map structure.It must follow the Expected JSON Format Example below.base_color (str): The hexadecimal color string (e.g., '#19191a') for the basecolor of the nodes, from which a gradient will be generated.Returns:str: The filepath to the generated PNG image file.56 unmodified lines})# Ensure base_color is valid, fallback if not (this logic is in graph_generator_utils too)# This line was REMOVED to ensure the passed base_color is used: base_color = '#19191a'# Central node styling (rounded box, dark color)dot.node(3 unmodified lines4567891011121314151656 unmodified lines737475767778793 unmodified linesimport osfrom graph_generator_utils import add_nodes_and_edgesdef generate_concept_map(json_input: str) -> str: # Removed base_color parameter"""Generates a concept map from JSON input.Args:json_input (str): A JSON string describing the concept map structure.It must follow the Expected JSON Format Example below.Returns:str: The filepath to the generated PNG image file.56 unmodified lines})base_color = '#19191a' # Hardcoded base color# Central node styling (rounded box, dark color)dot.node(
concept_map_generator.py+2-5