lsxi77777 commited on
Commit
89426d4
·
1 Parent(s): ea17c91

fix on gpu

Browse files
Files changed (1) hide show
  1. ui/app_class.py +2 -2
ui/app_class.py CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
6
  import numpy as np
7
  from easydict import EasyDict as edict
8
  from omegaconf import OmegaConf
9
-
10
  sys.path.append(str(Path(__file__).parents[1]))
11
 
12
  from ui.sfm import SfmEngine
@@ -83,7 +83,7 @@ a:hover {
83
  }
84
  """
85
 
86
-
87
  class ImageMatchingApp:
88
  def __init__(self, server_name="0.0.0.0", server_port=7860, **kwargs):
89
  self.server_name = server_name
 
6
  import numpy as np
7
  from easydict import EasyDict as edict
8
  from omegaconf import OmegaConf
9
+ import spaces
10
  sys.path.append(str(Path(__file__).parents[1]))
11
 
12
  from ui.sfm import SfmEngine
 
83
  }
84
  """
85
 
86
+ @spaces.GPU
87
  class ImageMatchingApp:
88
  def __init__(self, server_name="0.0.0.0", server_port=7860, **kwargs):
89
  self.server_name = server_name