AlbeRota commited on
Commit
77cf123
·
1 Parent(s): 16f2544
Files changed (2) hide show
  1. app.py +1 -0
  2. requirements.txt +1 -2
app.py CHANGED
@@ -119,6 +119,7 @@ def build_ui():
119
  print(f"Initializing model on {device}...")
120
  _get_model(device)
121
 
 
122
  def run_inference(image: np.ndarray | None) -> np.ndarray | None:
123
  """Run reflection removal using the cached model. Returns RGB numpy [H,W,3] in 0–255 or None."""
124
  if image is None:
 
119
  print(f"Initializing model on {device}...")
120
  _get_model(device)
121
 
122
+ @spaces.GPU
123
  def run_inference(image: np.ndarray | None) -> np.ndarray | None:
124
  """Run reflection removal using the cached model. Returns RGB numpy [H,W,3] in 0–255 or None."""
125
  if image is None:
requirements.txt CHANGED
@@ -1,5 +1,4 @@
1
 
2
  gradio
3
  huggingface-hub
4
- unreflectanything @ git+https://github.com/alberto-rota/UnReflectAnything.git
5
- rich
 
1
 
2
  gradio
3
  huggingface-hub
4
+ unreflectanything @ git+https://github.com/alberto-rota/UnReflectAnything.git