upadhyaysuraj commited on
Commit
b79123e
1 Parent(s): f075674

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,7 +65,7 @@ def main(image):
65
  numpy.ndarray: Image with bounding boxes drawn.
66
  str: Detected text from the bounding boxes.
67
  """
68
- # Load the model (ensure 'best.pt' is in the correct path)
69
  model = load_model('best.pt')
70
  return predict_and_plot(image, model)
71
 
@@ -76,7 +76,7 @@ iface = gr.Interface(
76
  outputs=[
77
  gr.Image(type="numpy", label="Output Image with Bounding Boxes")
78
  ],
79
- title="License Plate Detection and OCR",
80
  description="Click 'Submit' to dodetection on current image or click 'Clear' and then Upload an image to detect license plates.",
81
  allow_flagging="never" # Disable flagging
82
  )
 
65
  numpy.ndarray: Image with bounding boxes drawn.
66
  str: Detected text from the bounding boxes.
67
  """
68
+ # Load the model
69
  model = load_model('best.pt')
70
  return predict_and_plot(image, model)
71
 
 
76
  outputs=[
77
  gr.Image(type="numpy", label="Output Image with Bounding Boxes")
78
  ],
79
+ title="License Plate Detection",
80
  description="Click 'Submit' to dodetection on current image or click 'Clear' and then Upload an image to detect license plates.",
81
  allow_flagging="never" # Disable flagging
82
  )