Update test.py
Browse files
test.py
CHANGED
@@ -26,7 +26,7 @@ class test :
|
|
26 |
df = None
|
27 |
options = ["Google Pixel 5", "OnePlus 9", "Samsung Galaxy S21", "Xiaomi Mi 11",'iPhone 12']
|
28 |
|
29 |
-
selected_option = st.sidebar.selectbox("
|
30 |
|
31 |
if selected_option in options:
|
32 |
encoded_model = [1 if i == selected_option else 0 for i in options]
|
@@ -40,7 +40,7 @@ class test :
|
|
40 |
|
41 |
|
42 |
if selected_option =='iPhone 12':
|
43 |
-
selected_option1 = st.sidebar.selectbox("
|
44 |
encoded_os = [0,1]
|
45 |
else :
|
46 |
encoded_os = [1,0]
|
|
|
26 |
df = None
|
27 |
options = ["Google Pixel 5", "OnePlus 9", "Samsung Galaxy S21", "Xiaomi Mi 11",'iPhone 12']
|
28 |
|
29 |
+
selected_option = st.sidebar.selectbox("Select phone model :", options)
|
30 |
|
31 |
if selected_option in options:
|
32 |
encoded_model = [1 if i == selected_option else 0 for i in options]
|
|
|
40 |
|
41 |
|
42 |
if selected_option =='iPhone 12':
|
43 |
+
selected_option1 = st.sidebar.selectbox("Select OS :", 'IOS')
|
44 |
encoded_os = [0,1]
|
45 |
else :
|
46 |
encoded_os = [1,0]
|