freddyaboulton HF staff commited on
Commit
eb6917a
·
verified ·
1 Parent(s): 080458f

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. inference.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ from pydantic import BaseModel, Field
12
  try:
13
  from demo.object_detection.inference import YOLOv10
14
  except (ImportError, ModuleNotFoundError):
15
- from .inference import YOLOv10
16
 
17
 
18
  cur_dir = Path(__file__).parent
 
12
  try:
13
  from demo.object_detection.inference import YOLOv10
14
  except (ImportError, ModuleNotFoundError):
15
+ from inference import YOLOv10
16
 
17
 
18
  cur_dir = Path(__file__).parent
inference.py CHANGED
@@ -7,7 +7,7 @@ import onnxruntime
7
  try:
8
  from demo.object_detection.utils import draw_detections
9
  except (ImportError, ModuleNotFoundError):
10
- from .utils import draw_detections
11
 
12
 
13
  class YOLOv10:
 
7
  try:
8
  from demo.object_detection.utils import draw_detections
9
  except (ImportError, ModuleNotFoundError):
10
+ from utils import draw_detections
11
 
12
 
13
  class YOLOv10: