Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ with gr.Blocks() as demo:
|
|
| 71 |
input_array = np.expand_dims(resized_array, axis=0) # add an extra dimension to represent the batch size
|
| 72 |
|
| 73 |
# Make a prediction using the model
|
| 74 |
-
prediction = probability_model.predict(
|
| 75 |
|
| 76 |
# Postprocess the prediction and return it
|
| 77 |
return np.argmax(predictions[0])
|
|
|
|
| 71 |
input_array = np.expand_dims(resized_array, axis=0) # add an extra dimension to represent the batch size
|
| 72 |
|
| 73 |
# Make a prediction using the model
|
| 74 |
+
prediction = probability_model.predict(input_array)
|
| 75 |
|
| 76 |
# Postprocess the prediction and return it
|
| 77 |
return np.argmax(predictions[0])
|