fudii0921 commited on
Commit
17469fe
·
verified ·
1 Parent(s): 99897ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -46,7 +46,9 @@ def create_graph(text):
46
  return graph, graph_documents_filtered
47
 
48
  def visualize_graph(graph):
49
- plt.rcParams['font.family'] = ['DejaVu Sans', 'Arial']
 
 
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')