Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def predict_image(image):
|
|
| 28 |
|
| 29 |
# Get the probability of being 'Good'
|
| 30 |
probability_good = prediction[0][0] # Assuming it's a binary classification
|
| 31 |
-
|
| 32 |
# Define the prediction result
|
| 33 |
result = {
|
| 34 |
"prediction": probability_good
|
|
|
|
| 28 |
|
| 29 |
# Get the probability of being 'Good'
|
| 30 |
probability_good = prediction[0][0] # Assuming it's a binary classification
|
| 31 |
+
probability_good = str(probability_good)
|
| 32 |
# Define the prediction result
|
| 33 |
result = {
|
| 34 |
"prediction": probability_good
|