AIQuest commited on
Commit
1c45da8
·
verified ·
1 Parent(s): a46cb3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -67,8 +67,6 @@ def process_data(file):
67
  damage , result_image = car_detection_and_Cropping(file)
68
  return (damage_dic,condition)
69
 
70
- years_list = list(range(2024, 1899, -1))
71
- gr.Interface(fn = process_data,title = "Car Price Prediction",
72
- inputs=[gr.Image(label="Upload Files", type="pil")],
73
-
74
- outputs=[gr.Textbox(label="Damage List"),gr.Image(label="Processed Image")]).launch()
 
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.Image()], title=" 🚘Car Scratch and Dent Detection")
72
+ interface.launch()