aliabd HF Staff commited on
Commit
4049709
·
1 Parent(s): f430b16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -55,7 +55,8 @@ else:
55
 
56
  model.eval()
57
 
58
- def segment(inp):
 
59
  x = inp.transpose([2, 0, 1]) # channels-first
60
  x = np.expand_dims(x, axis=0) # adding a batch dimension
61
 
 
55
 
56
  model.eval()
57
 
58
+ def segment(input):
59
+ inp = input
60
  x = inp.transpose([2, 0, 1]) # channels-first
61
  x = np.expand_dims(x, axis=0) # adding a batch dimension
62