Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -81,7 +81,7 @@ def predict_insurance_charge(age, bmi, children, sex, smoker, region):
|
|
| 81 |
'sex': sex,
|
| 82 |
'smoker': smoker,
|
| 83 |
'region': region,
|
| 84 |
-
'prediction': prediction[0]
|
| 85 |
}
|
| 86 |
))
|
| 87 |
f.write("\n")
|
|
|
|
| 81 |
'sex': sex,
|
| 82 |
'smoker': smoker,
|
| 83 |
'region': region,
|
| 84 |
+
'prediction': prediction[0][0]
|
| 85 |
}
|
| 86 |
))
|
| 87 |
f.write("\n")
|