ritianyu commited on
Commit
2df49a5
·
1 Parent(s): 7819ac9
Files changed (1) hide show
  1. app.py +0 -15
app.py CHANGED
@@ -41,20 +41,6 @@ def _ensure_hf_cache_dirs() -> None:
41
 
42
  _ensure_hf_cache_dirs()
43
 
44
- try:
45
- import spaces
46
-
47
- GPU = spaces.GPU
48
- except ImportError:
49
- def GPU(*decorator_args, **decorator_kwargs):
50
- if decorator_args and callable(decorator_args[0]) and len(decorator_args) == 1 and not decorator_kwargs:
51
- return decorator_args[0]
52
-
53
- def decorator(fn):
54
- return fn
55
-
56
- return decorator
57
-
58
  import cv2
59
  import gradio as gr
60
  import numpy as np
@@ -262,7 +248,6 @@ def _resolution_visibility(output_resolution_mode: str):
262
  )
263
 
264
 
265
- @GPU(duration=120)
266
  @torch.no_grad()
267
  def _run_inference(
268
  image: np.ndarray,
 
41
 
42
  _ensure_hf_cache_dirs()
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  import cv2
45
  import gradio as gr
46
  import numpy as np
 
248
  )
249
 
250
 
 
251
  @torch.no_grad()
252
  def _run_inference(
253
  image: np.ndarray,