jackenmail commited on
Commit
4cbd56f
·
verified ·
1 Parent(s): 253848d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def predict(val1, val2):
10
  try:
11
  data = np.array([[float(val1), float(val2)]])
12
  prediction = model.predict(data)
13
- return str(prediction[0])
14
  except Exception as e:
15
  return f"Error: {str(e)}"
16
 
 
10
  try:
11
  data = np.array([[float(val1), float(val2)]])
12
  prediction = model.predict(data)
13
+ return "User will select" if prediction[0] == 1 else "User will not select"
14
  except Exception as e:
15
  return f"Error: {str(e)}"
16