morinop commited on
Commit
b9bb955
·
1 Parent(s): 1f780c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -17,6 +17,8 @@ def greet(image):
17
  print(type(image))
18
  image = torch.tensor(image).float()
19
  print(image.min(), image.max())
 
 
20
  out = model(image)
21
  # model.train()
22
  return f"Hello {model.bn1.running_mean.data} !!"
 
17
  print(type(image))
18
  image = torch.tensor(image).float()
19
  print(image.min(), image.max())
20
+ image = image/255.0
21
+ image = torch.permute(image, [0,2,3,1])
22
  out = model(image)
23
  # model.train()
24
  return f"Hello {model.bn1.running_mean.data} !!"