Jiranuwat commited on
Commit
7274794
·
1 Parent(s): 057c3f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -129,16 +129,15 @@ def SIR(country,R0,t_infective,pop):
129
  return R0,t_infective,beta,gamma,rmpe,plotdata(t, s, i,r,R0),compare_plt(country,i,pop)
130
 
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"):
138
- country = st.selectbox("Country",data['location'].unique())# user's input
139
  recovery = st.slider("How long Monkeypox last until recovery(days)? ", 14, 31, 21)
140
  R0 = st.slider("Basic Reproduction Number (R0)", 0.57, 3.00, 0.57)# user's input
141
- country_code = code[country][0]
142
  pop = pop_dict[country_code]
143
 
144
  # clicked==True only when the button is clicked
 
129
  return R0,t_infective,beta,gamma,rmpe,plotdata(t, s, i,r,R0),compare_plt(country,i,pop)
130
 
131
  def main():
132
+ st.title("SIR Model for Monkeypox of Thailand")
133
+ st.subheader("Latest updated : 6/11/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"):
 
138
  recovery = st.slider("How long Monkeypox last until recovery(days)? ", 14, 31, 21)
139
  R0 = st.slider("Basic Reproduction Number (R0)", 0.57, 3.00, 0.57)# user's input
140
+ country_code = code["Thailand"][0]
141
  pop = pop_dict[country_code]
142
 
143
  # clicked==True only when the button is clicked