JPLTedCas commited on
Commit
3a1a312
·
verified ·
1 Parent(s): babff5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -139,3 +139,12 @@ config = Config(width=750,
139
  return_value = agraph(nodes=nodes,
140
  edges=edges,
141
  config=config)
 
 
 
 
 
 
 
 
 
 
139
  return_value = agraph(nodes=nodes,
140
  edges=edges,
141
  config=config)
142
+
143
+
144
+ # Si el usuario selecciona un nodo, mostrar un enlace clickeable
145
+ if return_value and return_value["node"]:
146
+ selected_node = return_value["node"]
147
+
148
+ if selected_node == "ProductosIndustria":
149
+ url = "https://docs.google.com/spreadsheets/d/1lEgeCuetraS2rNiNKkeH7PjC0Y3RtxBs/edit?usp=sharing"
150
+ st.markdown(f"🔗 **[Abrir Documento](<{url}>)**", unsafe_allow_html=True)