SamiKhokhar commited on
Commit
e2fbe95
Β·
verified Β·
1 Parent(s): 20e6c6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -73,10 +73,10 @@ def save_to_database(image_filename, plate_number, items):
73
  print(f"Plate Number: {plate_number}, Image saved as {image_filename}")
74
  print("Detected items:", items)
75
 
76
- # Define the Gradio interface
77
  interface = gr.Interface(fn=process_image,
78
- inputs=gr.inputs.Image(type="pil"),
79
- outputs=gr.outputs.JSON(),
80
  live=True)
81
 
82
  # Launch the Gradio app
 
73
  print(f"Plate Number: {plate_number}, Image saved as {image_filename}")
74
  print("Detected items:", items)
75
 
76
+ # Define the Gradio interface using updated syntax
77
  interface = gr.Interface(fn=process_image,
78
+ inputs=gr.Image(type="pil"),
79
+ outputs=gr.JSON(),
80
  live=True)
81
 
82
  # Launch the Gradio app