mostafapasha commited on
Commit
08aebd6
·
1 Parent(s): bec39c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,4 +21,4 @@ def segment(img_arr):
21
  pred = tf.cast(prob > threshold, dtype=tf.float32)
22
  pred = np.array(pred.numpy())[0,:,:,0]
23
  return pred
24
- iface = gr.Interface(fn=segment, inputs=gr.inputs.Image(shape=(512, 512)), outputs="image", flagging_dir=os.path.join(sys.path[0], "flagged")).launch(share=True)
 
21
  pred = tf.cast(prob > threshold, dtype=tf.float32)
22
  pred = np.array(pred.numpy())[0,:,:,0]
23
  return pred
24
+ iface = gr.Interface(fn=segment, inputs=gr.inputs.Image(shape=(512, 512)), outputs="image", flagging_dir="flagged")).launch(share=True)