Campfireman commited on
Commit
86f63c4
·
1 Parent(s): 1628535

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def titanic(pclass,sex,age,sibsp,parch,embarked,fare_per_customer,embarked_remap
28
  # 'res' is a list of predictions returned as the label.
29
  #global res
30
  res = model.predict(np.asarray(input_list).reshape(1, -1))
31
- return {("This guy will"+("survive. " if float(res[0])==1 else "die. "))}
32
 
33
  demo = gr.Interface(
34
  titanic,
 
28
  # 'res' is a list of predictions returned as the label.
29
  #global res
30
  res = model.predict(np.asarray(input_list).reshape(1, -1))
31
+ return {('This guy will' + 'survive. ' if float(res[0])==1 else 'die. '))}
32
 
33
  demo = gr.Interface(
34
  titanic,