Spaces:
Runtime error
Runtime error
Commit
·
279cced
1
Parent(s):
6c9b99c
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def read_image(image):
|
|
| 15 |
def infer(model, image):
|
| 16 |
predictions = model.predict(image)
|
| 17 |
def display_result(input_image):
|
| 18 |
-
|
| 19 |
prediction_label = infer(model=model, image=image)
|
| 20 |
return prediction_label
|
| 21 |
|
|
|
|
| 15 |
def infer(model, image):
|
| 16 |
predictions = model.predict(image)
|
| 17 |
def display_result(input_image):
|
| 18 |
+
image = read_image(input_image)
|
| 19 |
prediction_label = infer(model=model, image=image)
|
| 20 |
return prediction_label
|
| 21 |
|