Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
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"
|