Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def run_query_and_visualize(qtext, jsonld_url):
|
|
42 |
net.add_edge(str(s), str(o), title=str(p))
|
43 |
|
44 |
# Gera o gráfico e salva em um arquivo HTML
|
45 |
-
net.
|
46 |
with open("graph.html", "r") as file:
|
47 |
graph_html = file.read()
|
48 |
return graph_html
|
|
|
42 |
net.add_edge(str(s), str(o), title=str(p))
|
43 |
|
44 |
# Gera o gráfico e salva em um arquivo HTML
|
45 |
+
net.show("graph.html")
|
46 |
with open("graph.html", "r") as file:
|
47 |
graph_html = file.read()
|
48 |
return graph_html
|