Tapanat commited on
Commit
2924721
1 Parent(s): f6588aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
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": [row],
21
  "Columns": [Columns],
22
  "Color": [Color]}))
23
- result = 'Red' if result[0] == 1 else 'Blue'
 
 
 
 
 
 
 
 
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__':