Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,8 @@ import random
|
|
10 |
# os.system("CUDA_HOME=/usr/local/cuda python -m pip uninstall groundingdino")
|
11 |
os.system("git clone https://github.com/IDEA-Research/GroundingDINO.git"
|
12 |
"&& export CUDA_HOME=/usr/local/cuda; pip install -e GroundingDINO")
|
13 |
-
|
|
|
14 |
import numpy as np
|
15 |
import torch
|
16 |
import torch.backends.cudnn as cudnn
|
|
|
10 |
# os.system("CUDA_HOME=/usr/local/cuda python -m pip uninstall groundingdino")
|
11 |
os.system("git clone https://github.com/IDEA-Research/GroundingDINO.git"
|
12 |
"&& export CUDA_HOME=/usr/local/cuda; pip install -e GroundingDINO")
|
13 |
+
import sys
|
14 |
+
sys.path.insert(0, './GroundingDINO')
|
15 |
import numpy as np
|
16 |
import torch
|
17 |
import torch.backends.cudnn as cudnn
|