Update UI.py
Browse files
UI.py
CHANGED
|
@@ -127,15 +127,15 @@ def create_interface(process_and_plot):
|
|
| 127 |
|
| 128 |
simulate_inputs = [
|
| 129 |
file_input,
|
| 130 |
-
biomass_equations,
|
| 131 |
-
biomass_params,
|
| 132 |
-
biomass_bounds,
|
| 133 |
-
substrate_equations,
|
| 134 |
-
substrate_params,
|
| 135 |
-
substrate_bounds,
|
| 136 |
-
product_equations,
|
| 137 |
-
product_params,
|
| 138 |
-
product_bounds,
|
| 139 |
legend_position,
|
| 140 |
show_legend,
|
| 141 |
show_params,
|
|
@@ -143,11 +143,3 @@ def create_interface(process_and_plot):
|
|
| 143 |
substrate_eq_count,
|
| 144 |
product_eq_count
|
| 145 |
]
|
| 146 |
-
|
| 147 |
-
simulate_btn.click(
|
| 148 |
-
fn=process_and_plot,
|
| 149 |
-
inputs=simulate_inputs,
|
| 150 |
-
outputs=[output_gallery, analysis_output]
|
| 151 |
-
)
|
| 152 |
-
|
| 153 |
-
return demo
|
|
|
|
| 127 |
|
| 128 |
simulate_inputs = [
|
| 129 |
file_input,
|
| 130 |
+
*[eq_input for row, eq_input in biomass_equations],
|
| 131 |
+
*biomass_params,
|
| 132 |
+
*biomass_bounds,
|
| 133 |
+
*[eq_input for row, eq_input in substrate_equations],
|
| 134 |
+
*substrate_params,
|
| 135 |
+
*substrate_bounds,
|
| 136 |
+
*[eq_input for row, eq_input in product_equations],
|
| 137 |
+
*product_params,
|
| 138 |
+
*product_bounds,
|
| 139 |
legend_position,
|
| 140 |
show_legend,
|
| 141 |
show_params,
|
|
|
|
| 143 |
substrate_eq_count,
|
| 144 |
product_eq_count
|
| 145 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|