FDSRashid commited on
Commit
e899676
·
verified ·
1 Parent(s): 45e3c85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -320,6 +320,7 @@ def visualize_narrator_taraf(taraf_num, narrator, yaxis):
320
  raise gr.Error('Narrator not in Isnad of Taraf!')
321
  nodes = list(G.nodes)
322
  nodes = [node for node in nodes if node not in list(nx.ancestors(G, narrator)) + list(nx.descendants(G, narrator)) and node !=narrator]
 
323
  isnad_pos = nx.nx_agraph.graphviz_layout(G, prog='dot')
324
 
325
  matns_with_narrator = []
 
320
  raise gr.Error('Narrator not in Isnad of Taraf!')
321
  nodes = list(G.nodes)
322
  nodes = [node for node in nodes if node not in list(nx.ancestors(G, narrator)) + list(nx.descendants(G, narrator)) and node !=narrator]
323
+ [G.remove_nodes_from(nodes)]
324
  isnad_pos = nx.nx_agraph.graphviz_layout(G, prog='dot')
325
 
326
  matns_with_narrator = []