Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ def generate_concept_map(json_input: str) -> str:
|
|
102 |
|
103 |
# Edge colors can remain constant or change. Let's make them slightly visible.
|
104 |
edge_color = '#4a4a4a' # Un gris oscuro para las líneas
|
105 |
-
font_size = max(9, 14 -
|
106 |
edge_font_size = max(7, 10 - (current_depth * 1))
|
107 |
|
108 |
for node in nodes_list:
|
|
|
102 |
|
103 |
# Edge colors can remain constant or change. Let's make them slightly visible.
|
104 |
edge_color = '#4a4a4a' # Un gris oscuro para las líneas
|
105 |
+
font_size = max(9, 14 - current_depth ) # Adjust font size based on depth
|
106 |
edge_font_size = max(7, 10 - (current_depth * 1))
|
107 |
|
108 |
for node in nodes_list:
|