Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -88,9 +88,9 @@ def predict_insurance_charge(age, bmi, children, sex, smoker, region):
|
|
| 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]
|
| 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]
|
| 96 |
#--------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
| 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]: {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[0]
|
| 94 |
|
| 95 |
#return prediction[0]
|
| 96 |
#--------------------------------------------------------------------------------------------------------------------------------------------------------------
|