keremberke
commited on
Commit
•
09d80bc
1
Parent(s):
91521ad
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,15 @@ article = f"<p style='text-align: center'> <a href='https://huggingface.co/{mode
|
|
12 |
current_model_id = models_ids[-1]
|
13 |
model = yolov5.load(current_model_id)
|
14 |
|
15 |
-
examples = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
|
18 |
def predict(image, threshold=0.25, model_id=None):
|
|
|
12 |
current_model_id = models_ids[-1]
|
13 |
model = yolov5.load(current_model_id)
|
14 |
|
15 |
+
examples = [
|
16 |
+
['test_images/0EZMOXIBCFJ2_jpg.rf.e02f09f440a32adc6b8cd173d64048dd.jpg', 0.25, 'keremberke/yolov5m-forklift'],
|
17 |
+
['test_images/32LSCZQDHZO7_jpg.rf.8fddaa4b5ed4db87d19a32d4554b9c23.jpg', 0.25, 'keremberke/yolov5m-forklift'],
|
18 |
+
['test_images/998PSJQQZBXV_jpg.rf.b1302d4d0209aed943753848438f8aa6.jpg', 0.25, 'keremberke/yolov5m-forklift'],
|
19 |
+
['test_images/KUN8WG9S97QO_jpg.rf.7ec95d32b4559f0c5d4e4e1a5f0623d7.jpg', 0.25, 'keremberke/yolov5m-forklift'],
|
20 |
+
['test_images/LTDX8N8ZKBT2_jpg.rf.6e09889a432d15c19fa0fbdbb62d347f.jpg', 0.25, 'keremberke/yolov5m-forklift'],
|
21 |
+
['test_images/V75EBJ0AG2HV_jpg.rf.88822c95c57d6bfb33092eb5ec0a020c.jpg', 0.25, 'keremberke/yolov5m-forklift'],
|
22 |
+
['test_images/XVMZ924NFFU3_jpg.rf.5c1f76b37c69b3db293151909c912e42.jpg', 0.25, 'keremberke/yolov5m-forklift'],
|
23 |
+
]
|
24 |
|
25 |
|
26 |
def predict(image, threshold=0.25, model_id=None):
|