tuan2308 commited on
Commit
3c0356a
·
verified ·
1 Parent(s): 79f94dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -9,6 +9,7 @@ from basicsr.utils.download_util import load_file_from_url
9
  from realesrgan import RealESRGANer
10
  from realesrgan.archs.srvgg_arch import SRVGGNetCompact
11
  from torchvision.transforms.functional import rgb_to_grayscale
 
12
 
13
  # Enable HF Spaces GPU wrapper only when explicitly requested
14
  # Set env USE_SPACES_GPU=1 on Hugging Face Spaces to enable GPU decorator
 
9
  from realesrgan import RealESRGANer
10
  from realesrgan.archs.srvgg_arch import SRVGGNetCompact
11
  from torchvision.transforms.functional import rgb_to_grayscale
12
+ import spaces
13
 
14
  # Enable HF Spaces GPU wrapper only when explicitly requested
15
  # Set env USE_SPACES_GPU=1 on Hugging Face Spaces to enable GPU decorator