Spaces:
Paused
Paused
Hemang Thakur
commited on
Commit
·
eb0d61a
1
Parent(s):
979861e
full read and write permissions to the working directory
Browse files
src/rag/neo4j_graphrag.py
CHANGED
@@ -1972,7 +1972,7 @@ class Neo4jGraphRAG:
|
|
1972 |
net.options["interaction"] = {"dragNodes": True}
|
1973 |
|
1974 |
# 5. Save to a temporary file, read it, then remove that file
|
1975 |
-
net.save_graph("temp_graph.html")
|
1976 |
with open("temp_graph.html", "r", encoding="utf-8") as f:
|
1977 |
html_str = f.read()
|
1978 |
|
|
|
1972 |
net.options["interaction"] = {"dragNodes": True}
|
1973 |
|
1974 |
# 5. Save to a temporary file, read it, then remove that file
|
1975 |
+
net.save_graph(os.getenv("WRITABLE_DIR", "/tmp") + "temp_graph.html")
|
1976 |
with open("temp_graph.html", "r", encoding="utf-8") as f:
|
1977 |
html_str = f.read()
|
1978 |
|