Spaces:
Sleeping
Sleeping
# Define working output directory
Browse files- render_report.py +1 -4
render_report.py
CHANGED
|
@@ -4,11 +4,8 @@ import os
|
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
import networkx as nx
|
| 6 |
|
| 7 |
-
# Ensure /mnt/data exists
|
| 8 |
# Define safe output directory
|
| 9 |
-
output_dir = "/
|
| 10 |
-
if not os.path.exists(output_dir) or not os.access(output_dir, os.W_OK):
|
| 11 |
-
output_dir = "/tmp"
|
| 12 |
|
| 13 |
# Load JSON
|
| 14 |
with open("/tmp/data.json", "r", encoding="utf-8") as f:
|
|
|
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
import networkx as nx
|
| 6 |
|
|
|
|
| 7 |
# Define safe output directory
|
| 8 |
+
output_dir = "/tmp"
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# Load JSON
|
| 11 |
with open("/tmp/data.json", "r", encoding="utf-8") as f:
|