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