Spaces:
Sleeping
Sleeping
Update gradio_utils.py
Browse files- gradio_utils.py +1 -1
gradio_utils.py
CHANGED
@@ -92,7 +92,7 @@ modelfin.load_state_dict(torch.load("model.ckpt"))
|
|
92 |
# Set the model to evaluation mode
|
93 |
modelfin.eval()
|
94 |
# If you need to use the model on a GPU, move the model to GPU after loading the state dict and setting it to eval mode
|
95 |
-
modelfin = modelfin.to('
|
96 |
|
97 |
inv_normalize = transforms.Normalize(
|
98 |
mean=[-1.9899, -1.9844, -1.7111],
|
|
|
92 |
# Set the model to evaluation mode
|
93 |
modelfin.eval()
|
94 |
# If you need to use the model on a GPU, move the model to GPU after loading the state dict and setting it to eval mode
|
95 |
+
modelfin = modelfin.to('cpu')
|
96 |
|
97 |
inv_normalize = transforms.Normalize(
|
98 |
mean=[-1.9899, -1.9844, -1.7111],
|