Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,6 @@ AIRT_DBASEx = os.getenv("AIRT_DBASE")
|
|
9 |
AIRT_TABLEx = os.getenv("AIRT_TABLE")
|
10 |
|
11 |
# Diccionario para almacenar los aportes y sus conexiones
|
12 |
-
aportes = {}
|
13 |
G = nx.Graph()
|
14 |
|
15 |
def guardar_en_airtable(nombre, enfoque, norma, texto):
|
@@ -32,7 +31,7 @@ def agregar_aporte(nombre, enfoque, norma, texto):
|
|
32 |
return visualizar_grafo()
|
33 |
|
34 |
def visualizar_grafo():
|
35 |
-
plt.figure(figsize=(8,
|
36 |
pos = nx.spring_layout(G)
|
37 |
labels = nx.get_node_attributes(G, 'label')
|
38 |
nx.draw(G, pos, with_labels=True, labels=labels, node_color='lightblue', edge_color='gray', node_size=2000, font_size=10)
|
|
|
9 |
AIRT_TABLEx = os.getenv("AIRT_TABLE")
|
10 |
|
11 |
# Diccionario para almacenar los aportes y sus conexiones
|
|
|
12 |
G = nx.Graph()
|
13 |
|
14 |
def guardar_en_airtable(nombre, enfoque, norma, texto):
|
|
|
31 |
return visualizar_grafo()
|
32 |
|
33 |
def visualizar_grafo():
|
34 |
+
plt.figure(figsize=(8, 8))
|
35 |
pos = nx.spring_layout(G)
|
36 |
labels = nx.get_node_attributes(G, 'label')
|
37 |
nx.draw(G, pos, with_labels=True, labels=labels, node_color='lightblue', edge_color='gray', node_size=2000, font_size=10)
|