Spaces:
Runtime error
Runtime error
ighoshsubho
commited on
Bug fix spaces
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ from utils.florence import load_florence_model, run_florence_inference, FLORENCE
|
|
6 |
from utils.sam import load_sam_image_model, run_sam_inference
|
7 |
import gradio as gr
|
8 |
import supervision as sv
|
|
|
9 |
|
10 |
# Load models
|
11 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
6 |
from utils.sam import load_sam_image_model, run_sam_inference
|
7 |
import gradio as gr
|
8 |
import supervision as sv
|
9 |
+
import spaces
|
10 |
|
11 |
# Load models
|
12 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|