FDSRashid commited on
Commit
0380f9d
·
1 Parent(s): 488e2a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ def network_visualizer(city, year, num_nodes):
53
  hadith_count = teacher_hadiths[teacher_hadiths['Teacher'] == source]['Hadiths'].to_list()[0]
54
  edge_color = value_to_hex(attribute_value)
55
 
56
- net.add_node(source, color=value_to_hex(hadith_count), font = {'size':30, 'color': 'orange'}, label = f"{source}\nHadiths: {attribute_value}")
57
  net.add_node(target, color=value_to_hex(attribute_value) , font = {'size': 20, 'color': 'red'}, label = f"{target}\nHadiths: {attribute_value}")
58
  net.add_edge(source, target, color=edge_color, value=attribute_value)
59
 
 
53
  hadith_count = teacher_hadiths[teacher_hadiths['Teacher'] == source]['Hadiths'].to_list()[0]
54
  edge_color = value_to_hex(attribute_value)
55
 
56
+ net.add_node(source, color=value_to_hex(hadith_count), font = {'size':30, 'color': 'orange'}, label = f"{source}\nHadiths: {hadith_count}")
57
  net.add_node(target, color=value_to_hex(attribute_value) , font = {'size': 20, 'color': 'red'}, label = f"{target}\nHadiths: {attribute_value}")
58
  net.add_edge(source, target, color=edge_color, value=attribute_value)
59