Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 79 |
-
outputs=gr.
|
| 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
|