Update app.py
Browse files
app.py
CHANGED
@@ -30,18 +30,11 @@ PORT_TO_VALUE = {
|
|
30 |
|
31 |
|
32 |
def titanic(ticket_class, sex, port, fare, age, sibsp, parch):
|
33 |
-
input_list = []
|
34 |
-
input_list.append(CLASS_TO_VALUE[ticket_class])
|
35 |
-
input_list.append(sex)
|
36 |
-
input_list.append(PORT_TO_VALUE[port])
|
37 |
-
input_list.append(fare)
|
38 |
-
input_list.append(age)
|
39 |
-
input_list.append(int(sibsp))
|
40 |
-
input_list.append(int(parch))
|
41 |
data = {
|
42 |
"pclass": [CLASS_TO_VALUE[ticket_class]],
|
43 |
"sex": [sex],
|
44 |
"embarked": [PORT_TO_VALUE[port]],
|
|
|
45 |
"age": [age],
|
46 |
"sibsp": [int(sibsp)],
|
47 |
"parch": [int(parch)],
|
|
|
30 |
|
31 |
|
32 |
def titanic(ticket_class, sex, port, fare, age, sibsp, parch):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
data = {
|
34 |
"pclass": [CLASS_TO_VALUE[ticket_class]],
|
35 |
"sex": [sex],
|
36 |
"embarked": [PORT_TO_VALUE[port]],
|
37 |
+
"fare": [fare],
|
38 |
"age": [age],
|
39 |
"sibsp": [int(sibsp)],
|
40 |
"parch": [int(parch)],
|