Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ def SIR(country,R0,t_infective,pop):
|
|
130 |
|
131 |
def main():
|
132 |
st.title("SIR Model for Monkeypox")
|
133 |
-
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.")
|
134 |
|
135 |
with st.form("questionaire"):
|
136 |
country = st.selectbox("Country",data['location'].unique())# user's input
|
@@ -152,7 +152,7 @@ def main():
|
|
152 |
st.success("R0 = "+str(SIR_param[0]))
|
153 |
st.success("Beta = "+str(SIR_param[2]))
|
154 |
st.success("Gamma = "+str(SIR_param[3]))
|
155 |
-
st.success("
|
156 |
|
157 |
# Run main()
|
158 |
if __name__ == "__main__":
|
|
|
130 |
|
131 |
def main():
|
132 |
st.title("SIR Model for Monkeypox")
|
133 |
+
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).")
|
134 |
|
135 |
with st.form("questionaire"):
|
136 |
country = st.selectbox("Country",data['location'].unique())# user's input
|
|
|
152 |
st.success("R0 = "+str(SIR_param[0]))
|
153 |
st.success("Beta = "+str(SIR_param[2]))
|
154 |
st.success("Gamma = "+str(SIR_param[3]))
|
155 |
+
st.success("MAPE = "+str(SIR_param[4])+"%")
|
156 |
|
157 |
# Run main()
|
158 |
if __name__ == "__main__":
|