Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ if st.button('Run Model and Generate Plots'):
|
|
| 45 |
st.success('Model executed successfully with user input and slider values.')
|
| 46 |
|
| 47 |
|
| 48 |
-
|
| 49 |
# Call the modified run_sir_model function with "graph" mode
|
| 50 |
image_path=run_sir_model(total_population, initial_infected, initial_recovered, beta, gamma, mode="graph")
|
| 51 |
st.image(image_path,caption="SIR Model Graph")
|
|
|
|
| 45 |
st.success('Model executed successfully with user input and slider values.')
|
| 46 |
|
| 47 |
|
| 48 |
+
elif st.button('Generate Graph'):
|
| 49 |
# Call the modified run_sir_model function with "graph" mode
|
| 50 |
image_path=run_sir_model(total_population, initial_infected, initial_recovered, beta, gamma, mode="graph")
|
| 51 |
st.image(image_path,caption="SIR Model Graph")
|