Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import random
|
@@ -15,7 +16,7 @@ from PIL import Image
|
|
15 |
|
16 |
from segment_anything import sam_model_registry, SamPredictor
|
17 |
|
18 |
-
|
19 |
|
20 |
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
21 |
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
import random
|
|
|
16 |
|
17 |
from segment_anything import sam_model_registry, SamPredictor
|
18 |
|
19 |
+
|
20 |
|
21 |
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
22 |
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|