keremberke commited on
Commit
dd401b6
1 Parent(s): 52dbea9

upload space files

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ 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 = [[WindowsPath('space_content/test_images/ss.png'), 0.25, 'keremberke/yolov5m-valorant'], [WindowsPath('space_content/test_images/ss2.png'), 0.25, 'keremberke/yolov5m-valorant'], [WindowsPath('space_content/test_images/ss3.png'), 0.25, 'keremberke/yolov5m-valorant'], [WindowsPath('space_content/test_images/ss4.jpg'), 0.25, 'keremberke/yolov5m-valorant'], [WindowsPath('space_content/test_images/ss5.jpg'), 0.25, 'keremberke/yolov5m-valorant'], [WindowsPath('space_content/test_images/ss6.jpg'), 0.25, 'keremberke/yolov5m-valorant'], [WindowsPath('space_content/test_images/test_images'), 0.25, 'keremberke/yolov5m-valorant']]
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 = [['test_images/ss.png', 0.25, 'keremberke/yolov5m-valorant'], ['test_images/ss2.png', 0.25, 'keremberke/yolov5m-valorant'], ['test_images/ss3.png', 0.25, 'keremberke/yolov5m-valorant'], ['test_images/ss4.jpg', 0.25, 'keremberke/yolov5m-valorant'], ['test_images/ss5.jpg', 0.25, 'keremberke/yolov5m-valorant'], ['test_images/ss6.jpg', 0.25, 'keremberke/yolov5m-valorant']]
16
 
17
 
18
  def predict(image, threshold=0.25, model_id=None):