HugMoE commited on
Commit
37b5846
1 Parent(s): 8d92731

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -11,7 +11,7 @@ article = f"<p style='text-align: center'> <a href='https://huggingface.co/{mode
11
  current_model_id = models_ids[-1]
12
  model = yolov5.load(current_model_id)
13
 
14
- examples = [['CarLongPlate686_jpg.rf.97172961f3f90ae6e4b0ef1edfa24b98.jpg', 0.25, 'keremberke/yolov5m-license-plate'], ['CarLongPlate834_jpg.rf.c6da1db4c7c6ce9d9d864a90bb46ff1d.jpg', 0.25, 'keremberke/yolov5m-license-plate'], ['CarLongPlateGen3663_jpg.rf.26f54b241dbee94a3faabc9a08fd638a.jpg', 0.25, 'keremberke/yolov5m-license-plate'], ['CarLongPlateGen570_jpg.rf.305252bdd2798c370af7f1d702c0dd97.jpg', 0.25, 'keremberke/yolov5m-license-plate'], ['xemay1024_jpg.rf.1d25cb47787faa4e72967cf4c356af2a.jpg', 0.25, 'keremberke/yolov5m-license-plate'], ['xemay1349_jpg.rf.759edbd383937d1fdc243203450a1823.jpg', 0.25, 'keremberke/yolov5m-license-plate']]
15
 
16
 
17
  def predict(image, threshold=0.25, model_id=None):
@@ -50,6 +50,6 @@ gr.Interface(
50
  gr.Dropdown(models_ids, value=models_ids[-1]),
51
  ],
52
  outputs=gr.Image(type="pil"),
53
- examples=examples,
54
- cache_examples=True if examples else False,
55
  ).launch(enable_queue=True)
 
11
  current_model_id = models_ids[-1]
12
  model = yolov5.load(current_model_id)
13
 
14
+ # examples = [['CarLongPlate686_jpg.rf.97172961f3f90ae6e4b0ef1edfa24b98.jpg', 0.25, 'keremberke/yolov5m-license-plate'], ['CarLongPlate834_jpg.rf.c6da1db4c7c6ce9d9d864a90bb46ff1d.jpg', 0.25, 'keremberke/yolov5m-license-plate'], ['CarLongPlateGen3663_jpg.rf.26f54b241dbee94a3faabc9a08fd638a.jpg', 0.25, 'keremberke/yolov5m-license-plate'], ['CarLongPlateGen570_jpg.rf.305252bdd2798c370af7f1d702c0dd97.jpg', 0.25, 'keremberke/yolov5m-license-plate'], ['xemay1024_jpg.rf.1d25cb47787faa4e72967cf4c356af2a.jpg', 0.25, 'keremberke/yolov5m-license-plate'], ['xemay1349_jpg.rf.759edbd383937d1fdc243203450a1823.jpg', 0.25, 'keremberke/yolov5m-license-plate']]
15
 
16
 
17
  def predict(image, threshold=0.25, model_id=None):
 
50
  gr.Dropdown(models_ids, value=models_ids[-1]),
51
  ],
52
  outputs=gr.Image(type="pil"),
53
+ # examples=examples,
54
+ # cache_examples=True if examples else False,
55
  ).launch(enable_queue=True)