aaditkapoorbionlp commited on
Commit
e2316f4
·
1 Parent(s): 2bb0bc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ else:
42
  G = all_graphs[option]
43
  nodes = [Node(id=i, title=i, size=20) for i in G.nodes]
44
  st.info(f"Numer of nodes: {len(nodes)}")
45
- edges = [Edge(source=i, title="Similarity is " + weight['weight'], target=j, weight=weight['weight'], type="CURVE_SMOOTH") for (i,j, weight) in G.edges.data()]
46
 
47
  config = Config(width=700,
48
  height=500,
 
42
  G = all_graphs[option]
43
  nodes = [Node(id=i, title=i, size=20) for i in G.nodes]
44
  st.info(f"Numer of nodes: {len(nodes)}")
45
+ edges = [Edge(source=i, title="Similarity is " + str(weight['weight']), target=j, weight=weight['weight'], type="CURVE_SMOOTH") for (i,j, weight) in G.edges.data()]
46
 
47
  config = Config(width=700,
48
  height=500,