ahmadluay commited on
Commit
135e49d
1 Parent(s): 9685626

Upload prediction.py

Browse files
Files changed (1) hide show
  1. prediction.py +3 -3
prediction.py CHANGED
@@ -16,9 +16,11 @@ def run():
16
  day = st.slider('Enter Date',min_value=1,max_value=31,value=26)
17
  month = st.slider('Enter Month',min_value=1, max_value=12,value=7)
18
  year = st.number_input('Enter Year',min_value=2012,max_value=2012,value=2012)
 
19
  Temperature = st.number_input('Enter Temperature',min_value=22,max_value=42,value=36)
20
  RH = st.number_input('Enter RH (Relative Humidity) in %',min_value=21,max_value=90,value=53)
21
  Ws = st.number_input('Enter Wind speed in km/h',min_value=6,max_value=29,value=19)
 
22
  Rain = st.number_input('Enter Rainfall in mm',step=0.01,format="%.2f",min_value=0.00,max_value=16.80,value=0.00)
23
  FFMC = st.number_input('Fine Fuel Moisture Code (FFMC) index',step=0.1,format="%.2f",min_value=28.60,max_value=92.50,value=89.20)
24
  DMC = st.number_input('Duff Moisture Code (DMC) index',step=0.1,format="%.2f",min_value=1.10,max_value=65.90,value=17.10)
@@ -26,9 +28,7 @@ def run():
26
  ISI = st.number_input('Initial Spread Index (ISI) index',step=0.1,format="%.2f",min_value=0.00,max_value=18.50,value=10.00)
27
  BUI = st.number_input('Buildup Index (BUI) index',step=0.1,format="%.2f",min_value=1.10,max_value=68.00,value=23.90)
28
  FWI = st.number_input('Fire Weather Index (FWI) Index',step=0.1,format="%.2f",min_value=0.00,max_value=31.10,value=15.30)
29
-
30
-
31
-
32
  submitted = st.form_submit_button('Is there a forest fire?')
33
 
34
  df_inf = {
 
16
  day = st.slider('Enter Date',min_value=1,max_value=31,value=26)
17
  month = st.slider('Enter Month',min_value=1, max_value=12,value=7)
18
  year = st.number_input('Enter Year',min_value=2012,max_value=2012,value=2012)
19
+ st.markdown('---')
20
  Temperature = st.number_input('Enter Temperature',min_value=22,max_value=42,value=36)
21
  RH = st.number_input('Enter RH (Relative Humidity) in %',min_value=21,max_value=90,value=53)
22
  Ws = st.number_input('Enter Wind speed in km/h',min_value=6,max_value=29,value=19)
23
+ st.markdown('---')
24
  Rain = st.number_input('Enter Rainfall in mm',step=0.01,format="%.2f",min_value=0.00,max_value=16.80,value=0.00)
25
  FFMC = st.number_input('Fine Fuel Moisture Code (FFMC) index',step=0.1,format="%.2f",min_value=28.60,max_value=92.50,value=89.20)
26
  DMC = st.number_input('Duff Moisture Code (DMC) index',step=0.1,format="%.2f",min_value=1.10,max_value=65.90,value=17.10)
 
28
  ISI = st.number_input('Initial Spread Index (ISI) index',step=0.1,format="%.2f",min_value=0.00,max_value=18.50,value=10.00)
29
  BUI = st.number_input('Buildup Index (BUI) index',step=0.1,format="%.2f",min_value=1.10,max_value=68.00,value=23.90)
30
  FWI = st.number_input('Fire Weather Index (FWI) Index',step=0.1,format="%.2f",min_value=0.00,max_value=31.10,value=15.30)
31
+
 
 
32
  submitted = st.form_submit_button('Is there a forest fire?')
33
 
34
  df_inf = {