Spaces:
Running
Running
commit
Browse files
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=
|
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 |
|