Azie88 commited on
Commit
8904e01
·
1 Parent(s): e1f545c

app update

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -23,6 +23,7 @@ st.set_page_config(
23
  st.write("<center><h1>Electricity Access Prediction App ⚡</h1></center>", unsafe_allow_html=True)
24
 
25
  # Sidebar navigation
 
26
  page = st.sidebar.selectbox("Select Page", ["Predicted Dataset", "Prediction"])
27
 
28
 
@@ -77,12 +78,12 @@ elif page == "Prediction":
77
  with col1:
78
  input_data['Year'] = st.number_input("Input Year", min_value=1990, max_value=2030, step=1)
79
  input_data['IncomeGroup'] = st.radio("Pick an income group", ["Lower middle income", "Upper middle income", "High income", "Low income"])
80
- input_data['Population'] = st.slider("Population of the country", min_value=9000, max_value=10000000000)
81
 
82
  with col2:
83
- input_data['GDP_per_capita_USD'] = st.slider("Enter GDP per capita (Current $)", min_value=20.0, max_value=250000.0, step=0.1)
84
- input_data['Inflation_annual_percent'] = st.slider("Enter Consumer Price Index", min_value=-20.0, max_value=25000.0, step=0.1)
85
- input_data['Consumption (kWh per capita)'] = st.slider("Enter Electricity Consumption", min_value=10.0, max_value=55000.0, step=0.1)
86
 
87
  # Define the custom CSS
88
  predict_button_css = """
 
23
  st.write("<center><h1>Electricity Access Prediction App ⚡</h1></center>", unsafe_allow_html=True)
24
 
25
  # Sidebar navigation
26
+ st.sidebar.write("## Choose a page")
27
  page = st.sidebar.selectbox("Select Page", ["Predicted Dataset", "Prediction"])
28
 
29
 
 
78
  with col1:
79
  input_data['Year'] = st.number_input("Input Year", min_value=1990, max_value=2030, step=1)
80
  input_data['IncomeGroup'] = st.radio("Pick an income group", ["Lower middle income", "Upper middle income", "High income", "Low income"])
81
+ input_data['Population'] = st.number_input("Population of the country", min_value=9000, max_value=10000000000)
82
 
83
  with col2:
84
+ input_data['GDP_per_capita_USD'] = st.number_input("Enter GDP per capita (Current $)", min_value=20.0, max_value=250000.0, step=0.1)
85
+ input_data['Inflation_annual_percent'] = st.number_input("Enter Consumer Price Index", min_value=-20.0, max_value=25000.0, step=0.1)
86
+ input_data['Consumption (kWh per capita)'] = st.number_input("Enter Electricity Consumption", min_value=10.0, max_value=55000.0, step=0.1)
87
 
88
  # Define the custom CSS
89
  predict_button_css = """