Rimjhim Mittal commited on
Commit ·
7cc6f57
1
Parent(s): 55ebabc
fixing the run button issue
Browse files
app.py
CHANGED
|
@@ -236,7 +236,7 @@ def parameter_form_to_update_model_and_view(mdf_model):
|
|
| 236 |
valid_inputs = False
|
| 237 |
|
| 238 |
run_button = st.form_submit_button("Run Simulation")
|
| 239 |
-
|
| 240 |
if run_button:
|
| 241 |
if valid_inputs:
|
| 242 |
for node in nodes:
|
|
@@ -247,7 +247,7 @@ def parameter_form_to_update_model_and_view(mdf_model):
|
|
| 247 |
st.session_state.simulation_run = True
|
| 248 |
else:
|
| 249 |
st.error("Please correct the invalid inputs before running the simulation.")
|
| 250 |
-
|
| 251 |
|
| 252 |
|
| 253 |
def upload_file_and_load_to_model():
|
|
|
|
| 236 |
valid_inputs = False
|
| 237 |
|
| 238 |
run_button = st.form_submit_button("Run Simulation")
|
| 239 |
+
|
| 240 |
if run_button:
|
| 241 |
if valid_inputs:
|
| 242 |
for node in nodes:
|
|
|
|
| 247 |
st.session_state.simulation_run = True
|
| 248 |
else:
|
| 249 |
st.error("Please correct the invalid inputs before running the simulation.")
|
| 250 |
+
view_tabs(mdf_model, param_inputs, stateful_nodes)
|
| 251 |
|
| 252 |
|
| 253 |
def upload_file_and_load_to_model():
|