Update app.py
Browse files
app.py
CHANGED
@@ -130,10 +130,10 @@ def create_interface() -> gr.Blocks:
|
|
130 |
fn=lambda: [None, None, None, None, None],
|
131 |
outputs=[stats_output, recommendations_output, content_output, links_output, details_output]
|
132 |
)
|
|
|
133 |
download_btn.click(
|
134 |
fn=generate_report,
|
135 |
-
outputs=
|
136 |
-
_js="(report_path) => { if(report_path) { window.open(report_path, '_blank'); } }"
|
137 |
)
|
138 |
plot_btn.click(
|
139 |
fn=plot_internal_links,
|
|
|
130 |
fn=lambda: [None, None, None, None, None],
|
131 |
outputs=[stats_output, recommendations_output, content_output, links_output, details_output]
|
132 |
)
|
133 |
+
# Se elimina el parámetro _js para evitar el error.
|
134 |
download_btn.click(
|
135 |
fn=generate_report,
|
136 |
+
outputs=file_download
|
|
|
137 |
)
|
138 |
plot_btn.click(
|
139 |
fn=plot_internal_links,
|