owaiskha9654 commited on
Commit
8129600
·
1 Parent(s): fd50455

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -183,4 +183,4 @@ def detect(img,model):
183
  return Image.fromarray(im0[:,:,::-1])
184
 
185
 
186
- gr.Interface(detect,[gr.Image(type="pil"),gr.Dropdown(default="Yolo_v7_Custom_trained_By_Owais",choices=["Yolo_v7_Custom_trained_By_Owais","yolov7","yolov7-e6"])], gr.Image(type="pil"),title="Yolov7",examples=[["Image1.jpg", "Yolo_v7_Custom_trained_By_Owais"],["Image2.jpg", "Yolo_v7_Custom_trained_By_Owais"],["Image3.jpg", "Yolo_v7_Custom_trained_By_Owais",],["Image4.jpg", "Yolo_v7_Custom_trained_By_Owais"],["Image5.jpg", "Yolo_v7_Custom_trained_By_Owais"],["Image6.jpg", "Yolo_v7_Custom_trained_By_Owais"],["horses.jpeg", "yolov7"]],description="Custom Training Performed on Kaggle Kernel<a href='https://www.kaggle.com/code/owaiskhan9654/training-yolov7-on-kaggle-on-custom-dataset/notebook' style='text-decoration: underline' target='_blank'>Link</a> \n Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors").launch()
 
183
  return Image.fromarray(im0[:,:,::-1])
184
 
185
 
186
+ gr.Interface(detect,cache_examples=False,[gr.Image(type="pil"),gr.Dropdown(default="Yolo_v7_Custom_trained_By_Owais",choices=["Yolo_v7_Custom_trained_By_Owais","yolov7","yolov7-e6"])], gr.Image(type="pil"),title="Yolov7",examples=[["Image1.jpg", "Yolo_v7_Custom_trained_By_Owais"],["Image2.jpg", "Yolo_v7_Custom_trained_By_Owais"],["Image3.jpg", "Yolo_v7_Custom_trained_By_Owais",],["Image4.jpg", "Yolo_v7_Custom_trained_By_Owais"],["Image5.jpg", "Yolo_v7_Custom_trained_By_Owais"],["Image6.jpg", "Yolo_v7_Custom_trained_By_Owais"],["horses.jpeg", "yolov7"]],description="Custom Training Performed on Kaggle Kernel<a href='https://www.kaggle.com/code/owaiskhan9654/training-yolov7-on-kaggle-on-custom-dataset/notebook' style='text-decoration: underline' target='_blank'>Link</a> \n Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors").launch()