Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -129,6 +129,8 @@ def do_prediction(img):
|
|
129 |
print(prediction.shape)
|
130 |
|
131 |
'''
|
|
|
|
|
132 |
return prediction_true * 255
|
133 |
|
134 |
iface = gr.Interface(fn=do_prediction, inputs=gr.Image(), outputs=gr.Image())
|
|
|
129 |
print(prediction.shape)
|
130 |
|
131 |
'''
|
132 |
+
prediction_true = prediction_true * -1
|
133 |
+
prediction_true = prediction_true + 1
|
134 |
return prediction_true * 255
|
135 |
|
136 |
iface = gr.Interface(fn=do_prediction, inputs=gr.Image(), outputs=gr.Image())
|