Jiranuwat commited on
Commit
c3102d5
·
1 Parent(s): 256b0da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -131,6 +131,7 @@ def SIR(country,R0,t_infective,pop):
131
  def main():
132
  st.title("SIR Model for Monkeypox")
133
  st.subheader("Latest updated : 9/10/2022")
 
134
  st.caption("Display graph of SIR model of monkeypox and comparison between the model and actual data. Try to find the best R0 that fit for the actual data (lowest MAPE).")
135
 
136
  with st.form("questionaire"):
@@ -151,8 +152,8 @@ def main():
151
  st.pyplot(SIR_param[-1])
152
  st.success("SIR model parameters for "+str(country)+" is")
153
  st.success("R0 = "+str(SIR_param[0]))
154
- st.success("Beta (Rate of transmission)= "+str(SIR_param[2]))
155
- st.success("Gamma (Rate of Recovery)= "+str(SIR_param[3]))
156
  st.success("MAPE = "+str(SIR_param[4])+"%")
157
 
158
  # Run main()
 
131
  def main():
132
  st.title("SIR Model for Monkeypox")
133
  st.subheader("Latest updated : 9/10/2022")
134
+ st.subheader("Reference : https://jckantor.github.io/CBE30338/03.09-COVID-")
135
  st.caption("Display graph of SIR model of monkeypox and comparison between the model and actual data. Try to find the best R0 that fit for the actual data (lowest MAPE).")
136
 
137
  with st.form("questionaire"):
 
152
  st.pyplot(SIR_param[-1])
153
  st.success("SIR model parameters for "+str(country)+" is")
154
  st.success("R0 = "+str(SIR_param[0]))
155
+ st.success("Beta (Rate of transmission) = "+str(SIR_param[2]))
156
+ st.success("Gamma (Rate of Recovery) = "+str(SIR_param[3]))
157
  st.success("MAPE = "+str(SIR_param[4])+"%")
158
 
159
  # Run main()