AIQuest commited on
Commit
044a945
·
verified ·
1 Parent(s): b3d600f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- return (damage_dic,condition)
 
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.Textbox(label="Condition")], title=" 🚘Car Scratch and Dent Detection")
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()