Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,7 @@ def attempt_download_from_hub(repo_id, hf_token=None):
|
|
49 |
@spaces.GPU(duration=10)
|
50 |
def LeYOLO_inference(image, model_id, image_size, conf_threshold, iou_threshold):
|
51 |
# MODEL_PATH = attempt_download_from_hub(model_id)
|
|
|
52 |
split_path = model.split('/')
|
53 |
if len(split_path) == 2 and (not os.path.exists(model)):
|
54 |
model = YOLO.from_pretrained(model_id)
|
|
|
49 |
@spaces.GPU(duration=10)
|
50 |
def LeYOLO_inference(image, model_id, image_size, conf_threshold, iou_threshold):
|
51 |
# MODEL_PATH = attempt_download_from_hub(model_id)
|
52 |
+
model = YOLO.from_pretrained(model_id)
|
53 |
split_path = model.split('/')
|
54 |
if len(split_path) == 2 and (not os.path.exists(model)):
|
55 |
model = YOLO.from_pretrained(model_id)
|