Campfireman commited on
Commit
c0034dc
·
1 Parent(s): aeb0a4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -26,7 +26,8 @@ def titanic(pclass,sex,age,sibsp,parch,embarked,fare_per_customer,embarked_remap
26
  input_list.append(embarked_remapped)
27
  input_list.append(cabin_remapped)
28
  # 'res' is a list of predictions returned as the label.
29
- global res = model.predict(np.asarray(input_list).reshape(1, -1))
 
30
 
31
  demo = gr.Interface(
32
  fn=titanic,
 
26
  input_list.append(embarked_remapped)
27
  input_list.append(cabin_remapped)
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
 
32
  demo = gr.Interface(
33
  fn=titanic,