Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -74,8 +74,13 @@ def main():
|
|
74 |
"three_g": [Has_3G],
|
75 |
"touch_screen": [Has_touch_screen],
|
76 |
"wifi": [Has_wifi]}))
|
77 |
-
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
79 |
if __name__ == "__main__":
|
80 |
main()
|
81 |
# Show prediction
|
|
|
74 |
"three_g": [Has_3G],
|
75 |
"touch_screen": [Has_touch_screen],
|
76 |
"wifi": [Has_wifi]}))
|
77 |
+
result = if result[0] == 0:
|
78 |
+
result = 'low cost'
|
79 |
+
elif result[0] == 1:
|
80 |
+
result = 'high cost'
|
81 |
+
else:
|
82 |
+
result = 'very high cost'
|
83 |
+
st.success('Your predicted Mobile prices is'+result)
|
84 |
if __name__ == "__main__":
|
85 |
main()
|
86 |
# Show prediction
|