rsortino commited on
Commit
37b1d1c
·
1 Parent(s): 0b76c5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def main():
46
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
47
 
48
  model = tiramisu.FCDenseNet67(n_classes=4).to(device)
49
- load_weights(model, "weights/real.pth")
50
  model.eval()
51
 
52
  st.markdown(
 
46
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
47
 
48
  model = tiramisu.FCDenseNet67(n_classes=4).to(device)
49
+ load_weights(model, "weights/real.pth", device)
50
  model.eval()
51
 
52
  st.markdown(