Spaces:
Running
on
Zero
Running
on
Zero
Update
Browse files- app.py +1 -0
- 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
|
|
|