davda54 commited on
Commit
ef16d31
·
1 Parent(s): 6d2c768

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,12 +24,12 @@ def render_dependency_tree(words, parents, labels):
24
 
25
  # Draw the graph
26
  nx.draw(G, pos, ax=ax, with_labels=True, labels=nx.get_node_attributes(G, 'label'),
27
- arrows=True, node_color='#ffffff', node_size=1600, node_shape='o', font_size=18
28
  )
29
 
30
  # Draw edge labels
31
  edge_labels = nx.get_edge_attributes(G, 'label')
32
- nx.draw_networkx_edge_labels(G, pos, ax=ax, edge_labels=edge_labels, rotate=False, alpha=0.9, font_size=14)
33
 
34
  return fig
35
 
 
24
 
25
  # Draw the graph
26
  nx.draw(G, pos, ax=ax, with_labels=True, labels=nx.get_node_attributes(G, 'label'),
27
+ arrows=True, node_color='#ffffff', node_size=2000, node_shape='s', font_size=24
28
  )
29
 
30
  # Draw edge labels
31
  edge_labels = nx.get_edge_attributes(G, 'label')
32
+ nx.draw_networkx_edge_labels(G, pos, ax=ax, edge_labels=edge_labels, rotate=False, alpha=0.9, font_size=18)
33
 
34
  return fig
35