maze commited on
Commit
7332f3d
β€’
1 Parent(s): 1238ccd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)