Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -134,9 +134,9 @@ def do_prediction(model_name, img):
|
|
| 134 |
print(prediction.shape)
|
| 135 |
|
| 136 |
'''
|
| 137 |
-
prediction_true = prediction_true * -1
|
| 138 |
-
prediction_true = prediction_true + 1
|
| 139 |
-
return "No numerical output", prediction_true * 255
|
| 140 |
|
| 141 |
# catch-all (we should not reach this)
|
| 142 |
case _:
|
|
|
|
| 134 |
print(prediction.shape)
|
| 135 |
|
| 136 |
'''
|
| 137 |
+
#prediction_true = prediction_true * -1
|
| 138 |
+
#prediction_true = prediction_true + 1
|
| 139 |
+
return "No numerical output", prediction_true[:,:,0]# * 255
|
| 140 |
|
| 141 |
# catch-all (we should not reach this)
|
| 142 |
case _:
|