matjesg commited on
Commit
95eedf0
·
1 Parent(s): 9365e4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -15,7 +15,10 @@ def inference(repo_id, model_name, img):
15
  with torch.inference_mode():
16
  argmax, softmax, stdeviation = model(inp)
17
 
18
- return argmax*255, stdeviation
 
 
 
19
 
20
 
21
  title="deepflash2"
 
15
  with torch.inference_mode():
16
  argmax, softmax, stdeviation = model(inp)
17
 
18
+ pred = argmax.cpu().numpy()
19
+ std = stdeviation.cpu().numpy()
20
+
21
+ return pred*255, std
22
 
23
 
24
  title="deepflash2"