Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -136,7 +136,7 @@ def process(image, model):
|
|
136 |
|
137 |
|
138 |
def main(image, backbone, style):
|
139 |
-
transformer.load_state_dict(torch.load(Rain_Princess))
|
140 |
image = Image.fromarray(image)
|
141 |
isize = image.size
|
142 |
image = process(image, transformer)
|
|
|
136 |
|
137 |
|
138 |
def main(image, backbone, style):
|
139 |
+
transformer.load_state_dict(torch.load(Rain_Princess, map_location=torch.device('cpu')))
|
140 |
image = Image.fromarray(image)
|
141 |
isize = image.size
|
142 |
image = process(image, transformer)
|