Jezia commited on
Commit
2d00aa2
·
1 Parent(s): acf46ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def load_model(file_name: str, device: torch.device):
55
  return model
56
 
57
  def generate_image(model_name: str, seed: int, truncation_psi: float):
58
- device = 'cuda'
59
  model = model_dict[model_name]
60
  model = load_model(model, device)
61
  seed = int(np.clip(seed, 0, np.iinfo(np.uint32).max))
 
55
  return model
56
 
57
  def generate_image(model_name: str, seed: int, truncation_psi: float):
58
+ device = 'cpu'
59
  model = model_dict[model_name]
60
  model = load_model(model, device)
61
  seed = int(np.clip(seed, 0, np.iinfo(np.uint32).max))