Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,9 @@ import numpy as np
|
|
| 3 |
import cv2
|
| 4 |
import json
|
| 5 |
import os
|
|
|
|
|
|
|
|
|
|
| 6 |
import gradio as gr
|
| 7 |
from detectron2.engine import DefaultPredictor
|
| 8 |
from detectron2.config import get_cfg
|
|
|
|
| 3 |
import cv2
|
| 4 |
import json
|
| 5 |
import os
|
| 6 |
+
import sys
|
| 7 |
+
import os
|
| 8 |
+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "detectron2"))
|
| 9 |
import gradio as gr
|
| 10 |
from detectron2.engine import DefaultPredictor
|
| 11 |
from detectron2.config import get_cfg
|