Spaces:
Running
Running
Update concept_map_generator.py
Browse files- concept_map_generator.py +1 -3
concept_map_generator.py
CHANGED
|
@@ -201,9 +201,8 @@ def generate_concept_map(json_input: str, output_format: str) -> str:
|
|
| 201 |
}
|
| 202 |
)
|
| 203 |
|
| 204 |
-
base_color = '#19191a'
|
| 205 |
|
| 206 |
-
# Central node styling (rounded box, dark color)
|
| 207 |
dot.node(
|
| 208 |
'central',
|
| 209 |
data['central_node'],
|
|
@@ -214,7 +213,6 @@ def generate_concept_map(json_input: str, output_format: str) -> str:
|
|
| 214 |
fontsize='16' # Larger font for central node
|
| 215 |
)
|
| 216 |
|
| 217 |
-
# Add child nodes and edges recursively starting from depth 1
|
| 218 |
add_nodes_and_edges(dot, 'central', data.get('nodes', []), current_depth=1, base_color=base_color)
|
| 219 |
|
| 220 |
with NamedTemporaryFile(delete=False, suffix=f'.{output_format}') as tmp:
|
|
|
|
| 201 |
}
|
| 202 |
)
|
| 203 |
|
| 204 |
+
base_color = '#19191a'
|
| 205 |
|
|
|
|
| 206 |
dot.node(
|
| 207 |
'central',
|
| 208 |
data['central_node'],
|
|
|
|
| 213 |
fontsize='16' # Larger font for central node
|
| 214 |
)
|
| 215 |
|
|
|
|
| 216 |
add_nodes_and_edges(dot, 'central', data.get('nodes', []), current_depth=1, base_color=base_color)
|
| 217 |
|
| 218 |
with NamedTemporaryFile(delete=False, suffix=f'.{output_format}') as tmp:
|