yaron123 commited on
Commit
0ace111
·
1 Parent(s): 7f44c6b
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -414,7 +414,6 @@ CHECKPOINTS = ESRGANUpscalerCheckpoints(
414
  device = DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
415
  DTYPE = torch.bfloat16 if torch.cuda.is_bf16_supported() else torch.float32
416
  enhancer = ESRGANUpscaler(checkpoints=CHECKPOINTS, device=DEVICE, dtype=DTYPE)
417
- enhancer.to(DEVICE)
418
 
419
  # logging
420
 
@@ -612,7 +611,7 @@ def add_song_cover_text(img,artist,song):
612
 
613
  return img
614
 
615
- @spaces.GPU(duration=180)
616
  def all_pipes(img,pos,neg,artist,song):
617
  imgs = pipe_generate_image(pos,neg)
618
 
 
414
  device = DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
415
  DTYPE = torch.bfloat16 if torch.cuda.is_bf16_supported() else torch.float32
416
  enhancer = ESRGANUpscaler(checkpoints=CHECKPOINTS, device=DEVICE, dtype=DTYPE)
 
417
 
418
  # logging
419
 
 
611
 
612
  return img
613
 
614
+ @spaces.GPU(duration=240)
615
  def all_pipes(img,pos,neg,artist,song):
616
  imgs = pipe_generate_image(pos,neg)
617