Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,8 +65,9 @@ def car_detection_and_Cropping(image_path):
|
|
65 |
## loading the model
|
66 |
def process_data(file):
|
67 |
damage , result_image = car_detection_and_Cropping(file)
|
68 |
-
|
|
|
69 |
|
70 |
interface = gr.Interface(fn=ProcessLookupError, inputs=gr.Image(type= 'pil', label='Upload Image of Car'),
|
71 |
-
outputs=[gr.Textbox(label="Number of Objects detected "),gr.
|
72 |
interface.launch()
|
|
|
65 |
## loading the model
|
66 |
def process_data(file):
|
67 |
damage , result_image = car_detection_and_Cropping(file)
|
68 |
+
|
69 |
+
return (damage,result_image)
|
70 |
|
71 |
interface = gr.Interface(fn=ProcessLookupError, inputs=gr.Image(type= 'pil', label='Upload Image of Car'),
|
72 |
+
outputs=[gr.Textbox(label="Number of Objects detected "),gr.Image(label="Process Image")], title=" 🚘Car Scratch and Dent Detection")
|
73 |
interface.launch()
|