keremberke commited on
Commit
09d80bc
1 Parent(s): 91521ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
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 = [['test_images/0EZMOXIBCFJ2_jpg.rf.e02f09f440a32adc6b8cd173d64048dd.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/998PSJQQZBXV_jpg.rf.b1302d4d0209aed943753848438f8aa6.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/BSMT1XOO121P_jpg.rf.dc69ec9589f362cd0b4d1f43fb316579.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/DJI_0005_0221_jpg.rf.955fd4d28e350da409f891d4b3a2d73e.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/DJI_0043_MOV-127_jpg.rf.a217394fc869d2736168845216aefa7f.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/DJI_0043_MOV-57_jpg.rf.a706f51366a5754325ee902769e8ffad.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/G25405S8CI7D_jpg.rf.519ff676dff32aa88b43e9f8d46f3371.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/img_049_jpg.rf.66cea1b105e1a5822d713a47e3d7b8c1.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/img_249_jpg.rf.e1b01660a85df7c00d5c31818a0c8c82.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/img_2640_jpg.rf.ed065aa127f8f841c25305c5c417b692.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/KUN8WG9S97QO_jpg.rf.7ec95d32b4559f0c5d4e4e1a5f0623d7.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/XVMZ924NFFU3_jpg.rf.5c1f76b37c69b3db293151909c912e42.jpg', 0.25, 'keremberke/yolov5m-forklift']]
 
 
 
 
 
 
 
 
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):