Update app.py
Browse files
app.py
CHANGED
|
@@ -143,7 +143,7 @@ def run_inference(temp_dir, removed_bg_path):
|
|
| 143 |
except subprocess.CalledProcessError as e:
|
| 144 |
return f"Error during inference: {str(e)}"
|
| 145 |
|
| 146 |
-
@spaces.GPU(
|
| 147 |
def process_image(input_pil, remove_bg, progress=gr.Progress(track_tqdm=True)):
|
| 148 |
|
| 149 |
torch.cuda.empty_cache()
|
|
|
|
| 143 |
except subprocess.CalledProcessError as e:
|
| 144 |
return f"Error during inference: {str(e)}"
|
| 145 |
|
| 146 |
+
@spaces.GPU(size="xlarge")
|
| 147 |
def process_image(input_pil, remove_bg, progress=gr.Progress(track_tqdm=True)):
|
| 148 |
|
| 149 |
torch.cuda.empty_cache()
|