vahidrezanezhad commited on
Commit
afe71f2
·
verified ·
1 Parent(s): 3720a03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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())