histlearn commited on
Commit
3a02f13
·
verified ·
1 Parent(s): a12b796

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.save_graph("graph.html")
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