TheStinger commited on
Commit
ded6990
1 Parent(s): f5460cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -2,7 +2,6 @@ import gradio as gr
2
  import cv2
3
  import numpy
4
  import os
5
- import spaces
6
  import random
7
  from basicsr.archs.rrdbnet_arch import RRDBNet
8
  from basicsr.utils.download_util import load_file_from_url
@@ -14,7 +13,6 @@ from torchvision.transforms.functional import rgb_to_grayscale
14
  last_file = None
15
  img_mode = "RGBA"
16
 
17
- @spaces.GPU
18
  def realesrgan(img, model_name, denoise_strength, face_enhance, outscale):
19
  """Real-ESRGAN function to restore (and upscale) images.
20
  """
 
2
  import cv2
3
  import numpy
4
  import os
 
5
  import random
6
  from basicsr.archs.rrdbnet_arch import RRDBNet
7
  from basicsr.utils.download_util import load_file_from_url
 
13
  last_file = None
14
  img_mode = "RGBA"
15
 
 
16
  def realesrgan(img, model_name, denoise_strength, face_enhance, outscale):
17
  """Real-ESRGAN function to restore (and upscale) images.
18
  """