Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -334,7 +334,7 @@ def fit_and_optimize_model():
|
|
334 |
equation_formatted = f"### Ecuaci贸n del Modelo Simplificado:<br>{equation_formatted}"
|
335 |
excel_path = rsm.save_tables_to_excel()
|
336 |
zip_path = rsm.save_figures_to_zip()
|
337 |
-
return (
|
338 |
|
339 |
def fit_custom_model(factor_checkboxes, interaction_checkboxes, model_personalized_output_component, pareto_personalized_output_component):
|
340 |
if 'rsm' not in globals(): return [None]*2
|
@@ -498,11 +498,10 @@ def create_gradio_interface():
|
|
498 |
with gr.Row():
|
499 |
left_button = gr.Button("<")
|
500 |
right_button = gr.Button(">")
|
|
|
|
|
501 |
rsm_plot_output_comp = rsm_plot_output
|
502 |
plot_info_comp = plot_info
|
503 |
-
with gr.Row():
|
504 |
-
download_plot_button_comp = download_plot_button # Correctly assigned here now
|
505 |
-
download_all_plots_button_comp = download_all_plots_button
|
506 |
current_index_state_comp = current_index_state
|
507 |
all_figures_state_comp = all_figures_state
|
508 |
current_model_type_state_comp = current_model_type_state
|
|
|
334 |
equation_formatted = f"### Ecuaci贸n del Modelo Simplificado:<br>{equation_formatted}"
|
335 |
excel_path = rsm.save_tables_to_excel()
|
336 |
zip_path = rsm.save_figures_to_zip()
|
337 |
+
return (model_completo_output, pareto_completo, model_simplificado_output, pareto_simplificado, equation_output, optimization_table, prediction_table, contribution_table, anova_table, zip_path, excel_path)
|
338 |
|
339 |
def fit_custom_model(factor_checkboxes, interaction_checkboxes, model_personalized_output_component, pareto_personalized_output_component):
|
340 |
if 'rsm' not in globals(): return [None]*2
|
|
|
498 |
with gr.Row():
|
499 |
left_button = gr.Button("<")
|
500 |
right_button = gr.Button(">")
|
501 |
+
download_plot_button_comp = gr.DownloadButton("Descargar Gr谩fico Actual (PNG)") # Defined HERE
|
502 |
+
download_all_plots_button_comp = gr.DownloadButton("Descargar Todos los Gr谩ficos (ZIP)")
|
503 |
rsm_plot_output_comp = rsm_plot_output
|
504 |
plot_info_comp = plot_info
|
|
|
|
|
|
|
505 |
current_index_state_comp = current_index_state
|
506 |
all_figures_state_comp = all_figures_state
|
507 |
current_model_type_state_comp = current_model_type_state
|