Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -69,8 +69,8 @@ def network_visualizer(yaxis, city, fstyear,lastyr, num_nodes):
|
|
69 |
student_info = narrator_bios[narrator_bios['Rawi ID'] == row['Student_ID']]
|
70 |
|
71 |
|
72 |
-
net.add_node(source, color=value_to_hex(teacher_info['Number of Narrations']), font = {'size':30, 'color': 'orange'})#, label = f"{source}\n{yaxis}: {hadith_count}")
|
73 |
-
net.add_node(target, color=value_to_hex(student_info['Number of Narrations']) , font = {'size': 20, 'color': 'red'})#, label = f"{target}\n{yaxis}: {student_count}")
|
74 |
net.add_edge(source, target, color=edge_color, value=attribute_value, label = f"{source} to {target}\n{yaxis}: {attribute_value}")
|
75 |
|
76 |
|
|
|
69 |
student_info = narrator_bios[narrator_bios['Rawi ID'] == row['Student_ID']]
|
70 |
|
71 |
|
72 |
+
net.add_node(source, color=value_to_hex(teacher_info['Number of Narrations'][0]), font = {'size':30, 'color': 'orange'})#, label = f"{source}\n{yaxis}: {hadith_count}")
|
73 |
+
net.add_node(target, color=value_to_hex(student_info['Number of Narrations'][0]) , font = {'size': 20, 'color': 'red'})#, label = f"{target}\n{yaxis}: {student_count}")
|
74 |
net.add_edge(source, target, color=edge_color, value=attribute_value, label = f"{source} to {target}\n{yaxis}: {attribute_value}")
|
75 |
|
76 |
|