Update app.py
Browse files
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
|