Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -81,15 +81,15 @@ 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")
|
| 88 |
|
| 89 |
-
prediction_result = prediction[0]
|
| 90 |
print(f"\nDebug - Prediction result: {prediction_result} - {type(prediction_result)}\n")
|
| 91 |
-
print(f"\nDebug - Prediction result: {prediction_result[0]} - {type(prediction_result[0])}\n")
|
| 92 |
-
print(f"\nDebug - Prediction result: {prediction_result[0][0]} - {type(prediction_result[0][0])}\n")
|
| 93 |
return prediction_result
|
| 94 |
|
| 95 |
#return prediction[0]
|
|
|
|
| 81 |
'sex': sex,
|
| 82 |
'smoker': smoker,
|
| 83 |
'region': region,
|
| 84 |
+
'prediction': prediction[0]
|
| 85 |
}
|
| 86 |
))
|
| 87 |
f.write("\n")
|
| 88 |
|
| 89 |
+
prediction_result = prediction[0]
|
| 90 |
print(f"\nDebug - Prediction result: {prediction_result} - {type(prediction_result)}\n")
|
| 91 |
+
print(f"\nDebug - Prediction result[0]S: {prediction_result[0]} - {type(prediction_result[0])}\n")
|
| 92 |
+
#print(f"\nDebug - Prediction result: {prediction_result[0][0]} - {type(prediction_result[0][0])}\n")
|
| 93 |
return prediction_result
|
| 94 |
|
| 95 |
#return prediction[0]
|