Update app.py
Browse filesadd if statement
app.py
CHANGED
|
@@ -39,6 +39,7 @@ with col2:
|
|
| 39 |
# st.pyplot(fig)
|
| 40 |
# st.success('Model executed successfully with user input and slider values.')
|
| 41 |
|
|
|
|
| 42 |
# Call the modified run_sir_model function with user input and slider values
|
| 43 |
fig,gif_path = run_sir_model(total_population, initial_infected, initial_recovered, beta, gamma, mode="run")
|
| 44 |
st.write("Static Population Model Output:")
|
|
|
|
| 39 |
# st.pyplot(fig)
|
| 40 |
# st.success('Model executed successfully with user input and slider values.')
|
| 41 |
|
| 42 |
+
if st.button('Run Model and Generate Plots'):
|
| 43 |
# Call the modified run_sir_model function with user input and slider values
|
| 44 |
fig,gif_path = run_sir_model(total_population, initial_infected, initial_recovered, beta, gamma, mode="run")
|
| 45 |
st.write("Static Population Model Output:")
|