Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,19 +10,19 @@ def main():
|
|
10 |
st.title("Predict mobile price range")
|
11 |
|
12 |
with st.form("questionaire"):
|
13 |
-
battery_power = st.slider("Battery Power(mAh)",min_value = 0, max_value = 2000, step=
|
14 |
blue = st.selectbox("Have Bluetooth?",option = bool_list)
|
15 |
-
clock_speed = st.slider("Microprocessor clock speed",min_value = 0, max_value = 3, step=
|
16 |
dual_sim = st.selectbox("Have Dualsim?",option = bool_list)
|
17 |
four_g = st.selectbox("Have 4G?",option = bool_list)
|
18 |
-
m_dep = st.slider("Mobile Depth(cm)",min_value = 0.1, max_value = 1, step=
|
19 |
-
mobile_wt = st.slider("Mobile Weight(gram)",min_value = 50, max_value = 200, step=
|
20 |
-
n_cores = st.slider("Number of processor core",min_value = 1, max_value = 8, step=
|
21 |
-
px_height = st.slider("Resolution height(pixels)",min_value = 0, max_value = 1960, step=
|
22 |
-
px_width = st.slider("Resolution width(pixels)",min_value = 0, max_value = 2000, step=
|
23 |
-
ram = st.slider("Ram(Megabytes)",min_value = 256, max_value = 4096, step=
|
24 |
-
sc_h = st.slider("Screen height(cm)",min_value = 0, max_value = 20, step=
|
25 |
-
sc_w = st.slider("Screen width(cm)",min_value = 0, max_value = 20, step=
|
26 |
touch_screen = st.selectbox("Have touchscreen?",option = bool_list)
|
27 |
wifi = st.selectbox("Have wifi?",option = bool_list)
|
28 |
|
|
|
10 |
st.title("Predict mobile price range")
|
11 |
|
12 |
with st.form("questionaire"):
|
13 |
+
battery_power = st.slider("Battery Power(mAh)",min_value = 0, max_value = 2000, step=1)
|
14 |
blue = st.selectbox("Have Bluetooth?",option = bool_list)
|
15 |
+
clock_speed = st.slider("Microprocessor clock speed",min_value = 0, max_value = 3, step=0.1)
|
16 |
dual_sim = st.selectbox("Have Dualsim?",option = bool_list)
|
17 |
four_g = st.selectbox("Have 4G?",option = bool_list)
|
18 |
+
m_dep = st.slider("Mobile Depth(cm)",min_value = 0.1, max_value = 1, step=0.1)
|
19 |
+
mobile_wt = st.slider("Mobile Weight(gram)",min_value = 50, max_value = 200, step=1)
|
20 |
+
n_cores = st.slider("Number of processor core",min_value = 1, max_value = 8, step=1)
|
21 |
+
px_height = st.slider("Resolution height(pixels)",min_value = 0, max_value = 1960, step=1)
|
22 |
+
px_width = st.slider("Resolution width(pixels)",min_value = 0, max_value = 2000, step=1)
|
23 |
+
ram = st.slider("Ram(Megabytes)",min_value = 256, max_value = 4096, step=1)
|
24 |
+
sc_h = st.slider("Screen height(cm)",min_value = 0, max_value = 20, step=1)
|
25 |
+
sc_w = st.slider("Screen width(cm)",min_value = 0, max_value = 20, step=1)
|
26 |
touch_screen = st.selectbox("Have touchscreen?",option = bool_list)
|
27 |
wifi = st.selectbox("Have wifi?",option = bool_list)
|
28 |
|