Update concept_map_generator.py
Browse files- concept_map_generator.py +2 -5
concept_map_generator.py
CHANGED
|
@@ -4,15 +4,13 @@ from tempfile import NamedTemporaryFile
|
|
| 4 |
import os
|
| 5 |
from graph_generator_utils import add_nodes_and_edges
|
| 6 |
|
| 7 |
-
def generate_concept_map(json_input: str
|
| 8 |
"""
|
| 9 |
Generates a concept map from JSON input.
|
| 10 |
|
| 11 |
Args:
|
| 12 |
json_input (str): A JSON string describing the concept map structure.
|
| 13 |
It must follow the Expected JSON Format Example below.
|
| 14 |
-
base_color (str): The hexadecimal color string (e.g., '#19191a') for the base
|
| 15 |
-
color of the nodes, from which a gradient will be generated.
|
| 16 |
|
| 17 |
Returns:
|
| 18 |
str: The filepath to the generated PNG image file.
|
|
@@ -75,8 +73,7 @@ def generate_concept_map(json_input: str, base_color: str) -> str: # base_color
|
|
| 75 |
}
|
| 76 |
)
|
| 77 |
|
| 78 |
-
|
| 79 |
-
# This line was REMOVED to ensure the passed base_color is used: base_color = '#19191a'
|
| 80 |
|
| 81 |
# Central node styling (rounded box, dark color)
|
| 82 |
dot.node(
|
|
|
|
| 4 |
import os
|
| 5 |
from graph_generator_utils import add_nodes_and_edges
|
| 6 |
|
| 7 |
+
def generate_concept_map(json_input: str) -> str: # Removed base_color parameter
|
| 8 |
"""
|
| 9 |
Generates a concept map from JSON input.
|
| 10 |
|
| 11 |
Args:
|
| 12 |
json_input (str): A JSON string describing the concept map structure.
|
| 13 |
It must follow the Expected JSON Format Example below.
|
|
|
|
|
|
|
| 14 |
|
| 15 |
Returns:
|
| 16 |
str: The filepath to the generated PNG image file.
|
|
|
|
| 73 |
}
|
| 74 |
)
|
| 75 |
|
| 76 |
+
base_color = '#19191a' # Hardcoded base color
|
|
|
|
| 77 |
|
| 78 |
# Central node styling (rounded box, dark color)
|
| 79 |
dot.node(
|