Update app.py
Browse files
app.py
CHANGED
@@ -39,6 +39,9 @@ def cargar_desde_airtable():
|
|
39 |
|
40 |
return pd.DataFrame(aportes, columns=["Nombre", "Enfoque", "Norma", "Texto_HF"])
|
41 |
|
|
|
|
|
|
|
42 |
def inicializar_grafo():
|
43 |
df = cargar_desde_airtable()
|
44 |
|
@@ -65,9 +68,6 @@ def guardar_en_airtable(nombre, enfoque, norma, texto):
|
|
65 |
data = {"fields": {"Nombre": nombre, "Enfoque": enfoque, "Norma": norma, "Texto_HF": texto}}
|
66 |
requests.post(url, headers=headers, json=data)
|
67 |
|
68 |
-
def wrap_text(text, width=10):
|
69 |
-
return "\n".join(textwrap.wrap(text, width=width))
|
70 |
-
|
71 |
def agregar_aporte(nombre, enfoque, norma, texto):
|
72 |
textox = wrap_text(f"{nombre}: {texto}")
|
73 |
|
|
|
39 |
|
40 |
return pd.DataFrame(aportes, columns=["Nombre", "Enfoque", "Norma", "Texto_HF"])
|
41 |
|
42 |
+
def wrap_text(text, width=10):
|
43 |
+
return "\n".join(textwrap.wrap(text, width=width))
|
44 |
+
|
45 |
def inicializar_grafo():
|
46 |
df = cargar_desde_airtable()
|
47 |
|
|
|
68 |
data = {"fields": {"Nombre": nombre, "Enfoque": enfoque, "Norma": norma, "Texto_HF": texto}}
|
69 |
requests.post(url, headers=headers, json=data)
|
70 |
|
|
|
|
|
|
|
71 |
def agregar_aporte(nombre, enfoque, norma, texto):
|
72 |
textox = wrap_text(f"{nombre}: {texto}")
|
73 |
|