Spaces:
Runtime error
Runtime error
Commit
·
fecaffd
1
Parent(s):
c279d28
wtf
Browse files
app.py
CHANGED
@@ -131,8 +131,11 @@ def titanic(Pclass, Sex, Age, SibSp, Parch, Fare, Embarked):
|
|
131 |
|
132 |
featureLabels = ["Pclass", "Name", "Sex", "Age", "SibSp",
|
133 |
"Parch", "Ticket", "Fare", "Cabin", "Embarked"]
|
|
|
|
|
134 |
for feature in featureLabels:
|
135 |
if feature in numericalInputs:
|
|
|
136 |
if feature.lower() == 'Age'.lower():
|
137 |
inputs.append(gr.inputs.Slider(9, 75, 1, label='Age (years)'))
|
138 |
if feature.lower() == 'SibSp'.lower():
|
|
|
131 |
|
132 |
featureLabels = ["Pclass", "Name", "Sex", "Age", "SibSp",
|
133 |
"Parch", "Ticket", "Fare", "Cabin", "Embarked"]
|
134 |
+
|
135 |
+
|
136 |
for feature in featureLabels:
|
137 |
if feature in numericalInputs:
|
138 |
+
print(feature)
|
139 |
if feature.lower() == 'Age'.lower():
|
140 |
inputs.append(gr.inputs.Slider(9, 75, 1, label='Age (years)'))
|
141 |
if feature.lower() == 'SibSp'.lower():
|