Update app.py
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ def plot_detections(image_path: str, detections: List[Dict]):
|
|
101 |
plt.show()
|
102 |
|
103 |
def process_image(image, conf_thres, iou_thres, model):
|
104 |
-
api_url = os.getenv('YOLO_API_URL', 'https://
|
105 |
detector = YOLODetector(api_url)
|
106 |
|
107 |
with NamedTemporaryFile(delete=False, suffix='.png') as temp_file:
|
|
|
101 |
plt.show()
|
102 |
|
103 |
def process_image(image, conf_thres, iou_thres, model):
|
104 |
+
api_url = os.getenv('YOLO_API_URL', 'https://o3f0aia4gtlf0l-8888.proxy.runpod.net/detect/')
|
105 |
detector = YOLODetector(api_url)
|
106 |
|
107 |
with NamedTemporaryFile(delete=False, suffix='.png') as temp_file:
|