Spaces:
Running
Running
Commit
路
08f9513
1
Parent(s):
8336799
Export Table
Browse files
app.py
CHANGED
|
@@ -273,16 +273,18 @@ def run_model(model_name):
|
|
| 273 |
df_table.to_excel(buffer, index=False)
|
| 274 |
buffer.seek(0)
|
| 275 |
|
|
|
|
|
|
|
|
|
|
| 276 |
# Agregar un bot贸n de descarga en Streamlit
|
| 277 |
st.download_button(
|
| 278 |
-
label="Exportar
|
| 279 |
data=buffer,
|
| 280 |
-
file_name="
|
| 281 |
-
mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
|
|
| 282 |
)
|
| 283 |
|
| 284 |
-
layout = column(fig, column(real_select, reset_button, data_table))
|
| 285 |
-
st.bokeh_chart(layout, use_container_width=True)
|
| 286 |
|
| 287 |
|
| 288 |
# Funci贸n principal con tabs para cambiar de modelo
|
|
|
|
| 273 |
df_table.to_excel(buffer, index=False)
|
| 274 |
buffer.seek(0)
|
| 275 |
|
| 276 |
+
layout = column(fig, column(real_select, reset_button, data_table))
|
| 277 |
+
st.bokeh_chart(layout, use_container_width=True)
|
| 278 |
+
|
| 279 |
# Agregar un bot贸n de descarga en Streamlit
|
| 280 |
st.download_button(
|
| 281 |
+
label="Exportar Table",
|
| 282 |
data=buffer,
|
| 283 |
+
file_name=f"cluster_distances_{model_name}.xlsx",
|
| 284 |
+
mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
| 285 |
+
key=f"download_button_excel_{model_name}"
|
| 286 |
)
|
| 287 |
|
|
|
|
|
|
|
| 288 |
|
| 289 |
|
| 290 |
# Funci贸n principal con tabs para cambiar de modelo
|