Spaces:
Runtime error
Runtime error
Commit
·
ac5e6c0
1
Parent(s):
a763ea9
adsf
Browse files
app.py
CHANGED
@@ -134,15 +134,15 @@ featureLabels = ["Pclass", "Name", "Sex", "Age", "SibSp",
|
|
134 |
for feature in featureLabels:
|
135 |
if feature in numericalInputs:
|
136 |
if feature == 'Age':
|
137 |
-
inputs.append(gr.inputs.
|
138 |
if feature == 'SibSp':
|
139 |
-
inputs.append(gr.inputs.
|
140 |
0, 10, 1, label='Number of siblings/spouses aboard'))
|
141 |
if feature == 'Parch':
|
142 |
-
inputs.append(gr.inputs.
|
143 |
0, 10, 1, label='Number of parents/children aboard'))
|
144 |
if feature == 'Fare':
|
145 |
-
inputs.append(gr.inputs.
|
146 |
else:
|
147 |
raise Exception(f'Feature: "{feature}" not found')
|
148 |
elif feature in worthlessInputs:
|
|
|
134 |
for feature in featureLabels:
|
135 |
if feature in numericalInputs:
|
136 |
if feature == 'Age':
|
137 |
+
inputs.append(gr.inputs.Slider(9, 75, 1, label='Age (years)'))
|
138 |
if feature == 'SibSp':
|
139 |
+
inputs.append(gr.inputs.Slider(
|
140 |
0, 10, 1, label='Number of siblings/spouses aboard'))
|
141 |
if feature == 'Parch':
|
142 |
+
inputs.append(gr.inputs.Slider(
|
143 |
0, 10, 1, label='Number of parents/children aboard'))
|
144 |
if feature == 'Fare':
|
145 |
+
inputs.append(gr.inputs.Slider(0, 1000, 1, label='Ticket fare'))
|
146 |
else:
|
147 |
raise Exception(f'Feature: "{feature}" not found')
|
148 |
elif feature in worthlessInputs:
|