Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,9 @@ def create_graph(text):
|
|
| 46 |
return graph, graph_documents_filtered
|
| 47 |
|
| 48 |
def visualize_graph(graph):
|
| 49 |
-
|
|
|
|
|
|
|
| 50 |
plt.figure(figsize=(12, 8))
|
| 51 |
pos = nx.spring_layout(graph._graph)
|
| 52 |
nx.draw(graph._graph, pos, with_labels=True, node_color='lightblue', node_size=500, font_size=8, font_weight='bold')
|
|
|
|
| 46 |
return graph, graph_documents_filtered
|
| 47 |
|
| 48 |
def visualize_graph(graph):
|
| 49 |
+
for key, value in plt.rcParams.items():
|
| 50 |
+
print(f"{key}: {value}")
|
| 51 |
+
plt.rcParams['font.family'] = ['DejaVu Sans']
|
| 52 |
plt.figure(figsize=(12, 8))
|
| 53 |
pos = nx.spring_layout(graph._graph)
|
| 54 |
nx.draw(graph._graph, pos, with_labels=True, node_color='lightblue', node_size=500, font_size=8, font_weight='bold')
|