Update concept_map_generator.py
Browse files- concept_map_generator.py +1 -1
concept_map_generator.py
CHANGED
|
@@ -219,7 +219,7 @@ def generate_concept_map(json_input: str, output_format: str) -> str:
|
|
| 219 |
|
| 220 |
with NamedTemporaryFile(delete=False, suffix=f'.{output_format}') as tmp:
|
| 221 |
dot.render(tmp.name, format=output_format, cleanup=True)
|
| 222 |
-
return
|
| 223 |
|
| 224 |
except json.JSONDecodeError:
|
| 225 |
return "Error: Invalid JSON format"
|
|
|
|
| 219 |
|
| 220 |
with NamedTemporaryFile(delete=False, suffix=f'.{output_format}') as tmp:
|
| 221 |
dot.render(tmp.name, format=output_format, cleanup=True)
|
| 222 |
+
return tmp.name
|
| 223 |
|
| 224 |
except json.JSONDecodeError:
|
| 225 |
return "Error: Invalid JSON format"
|