Update app.py
Browse files
app.py
CHANGED
@@ -17,10 +17,18 @@ def main():
|
|
17 |
if clicked:
|
18 |
result=model.predict(pd.DataFrame({"room": [room],
|
19 |
"partitions": [partition],
|
20 |
-
"Rows": [
|
21 |
"Columns": [Columns],
|
22 |
"Color": [Color]}))
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
st.success('The predicted color is {}'.format(result))
|
25 |
|
26 |
if __name__=='__main__':
|
|
|
17 |
if clicked:
|
18 |
result=model.predict(pd.DataFrame({"room": [room],
|
19 |
"partitions": [partition],
|
20 |
+
"Rows": [Row],
|
21 |
"Columns": [Columns],
|
22 |
"Color": [Color]}))
|
23 |
+
if 'Color' = 'Red' :
|
24 |
+
print('Red')
|
25 |
+
elif 'Color' = 'Blue':
|
26 |
+
print('BLue')
|
27 |
+
elif 'Color' = 'Yellow':
|
28 |
+
print('Yellow')
|
29 |
+
else 'Color' = 'Green':
|
30 |
+
print('Green')
|
31 |
+
#result = 'Red' = Red if result[0] == 1 else 'Blue'
|
32 |
st.success('The predicted color is {}'.format(result))
|
33 |
|
34 |
if __name__=='__main__':
|