Devashri commited on
Commit
ccf4d76
·
verified ·
1 Parent(s): 3060b9d

Update app.py

Browse files

add if statement

Files changed (1) hide show
  1. app.py +1 -0
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:")