Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|