Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,6 +47,7 @@ def visualize_model_output(prediction, img):
|
|
| 47 |
|
| 48 |
|
| 49 |
def do_prediction(model_name, img):
|
|
|
|
| 50 |
model = from_pretrained_keras(model_name)
|
| 51 |
|
| 52 |
match model_name:
|
|
@@ -175,7 +176,7 @@ def do_prediction(model_name, img):
|
|
| 175 |
'''
|
| 176 |
#prediction_true = prediction_true * -1
|
| 177 |
#prediction_true = prediction_true + 1
|
| 178 |
-
return "No numerical output", visualize_model_output(prediction_true,
|
| 179 |
|
| 180 |
# catch-all (we should not reach this)
|
| 181 |
case _:
|
|
|
|
| 47 |
|
| 48 |
|
| 49 |
def do_prediction(model_name, img):
|
| 50 |
+
img_org = np.copy(img)
|
| 51 |
model = from_pretrained_keras(model_name)
|
| 52 |
|
| 53 |
match model_name:
|
|
|
|
| 176 |
'''
|
| 177 |
#prediction_true = prediction_true * -1
|
| 178 |
#prediction_true = prediction_true + 1
|
| 179 |
+
return "No numerical output", visualize_model_output(prediction_true,img_org)
|
| 180 |
|
| 181 |
# catch-all (we should not reach this)
|
| 182 |
case _:
|