Campfireman commited on
Commit
cfa9fef
1 Parent(s): 0e0feb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ model = mr.get_model("titanic_modal_more_specs", version=1)
14
  model_dir = model.download()
15
  model = joblib.load(model_dir + "/titanic_model.pkl")
16
 
17
- def titanic(pclass,sex,age,sibsp,parch,embarked,fare_per_customer,cabin):
18
  input_list = []
19
  input_list.append(pclass)
20
  input_list.append(sex)
@@ -30,7 +30,7 @@ def titanic(pclass,sex,age,sibsp,parch,embarked,fare_per_customer,cabin):
30
  return "This guy will"
31
 
32
  demo = gr.Interface(
33
- titanic,
34
  title="Titanic Predictive Analytics",
35
  description="Predict survivals. 0 for dead and 1 for survived. ",
36
  inputs=[
 
14
  model_dir = model.download()
15
  model = joblib.load(model_dir + "/titanic_model.pkl")
16
 
17
+ def tb_titanic(pclass,sex,age,sibsp,parch,embarked,fare_per_customer,cabin):
18
  input_list = []
19
  input_list.append(pclass)
20
  input_list.append(sex)
 
30
  return "This guy will"
31
 
32
  demo = gr.Interface(
33
+ f=tb_titanic,
34
  title="Titanic Predictive Analytics",
35
  description="Predict survivals. 0 for dead and 1 for survived. ",
36
  inputs=[