Update concept_map_generator.py
Browse files- concept_map_generator.py +3 -4
concept_map_generator.py
CHANGED
@@ -4,7 +4,7 @@ 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, base_color: str) -> str:
|
8 |
"""
|
9 |
Generates a concept map from JSON input.
|
10 |
|
@@ -75,9 +75,8 @@ def generate_concept_map(json_input: str, base_color: str) -> str:
|
|
75 |
}
|
76 |
)
|
77 |
|
78 |
-
# Ensure base_color is valid, fallback if not
|
79 |
-
|
80 |
-
base_color = '#19191a' # Fallback to default dark if invalid
|
81 |
|
82 |
# Central node styling (rounded box, dark color)
|
83 |
dot.node(
|
|
|
4 |
import os
|
5 |
from graph_generator_utils import add_nodes_and_edges
|
6 |
|
7 |
+
def generate_concept_map(json_input: str, base_color: str) -> str: # base_color is now correctly used
|
8 |
"""
|
9 |
Generates a concept map from JSON input.
|
10 |
|
|
|
75 |
}
|
76 |
)
|
77 |
|
78 |
+
# Ensure base_color is valid, fallback if not (this logic is in graph_generator_utils too)
|
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(
|