--- title: Automobile Inspection Agent emoji: 🚗 colorFrom: blue colorTo: indigo sdk: gradio --- # Automobile Inspection Agent This Gradio application serves as an **Automobile Inspection Agent**, designed to analyze images of a car and its various parts to provide comprehensive inspection reports and vehicle data. ## Features: - **Vehicle Data Extraction**: Automatically identifies vehicle type, make, model, model year, color, and license plate from a full vehicle image. - **Part-Specific Inspection**: Provides detailed reports for individual car parts (body, wheels, engine) including a numeric rating, advantages, disadvantages, and condition. - **Overall Summary**: Generates a holistic summary of the car's condition, an overall numeric rating, and a buying recommendation based on all part reports. ## How to Use: 1. **Upload Images**: Upload images for the following: * `Full Vehicle`: A complete shot of the car. * `Body Image`: A close-up of the car's body. * `Wheel 1` and `Wheel 2`: Images of individual wheels. * `Engine`: An image of the car's engine compartment. 2. **Run Inspection**: Click the "Run Inspection" button. 3. **Review Reports**: The application will display: * A table of individual part reports with ratings. * A table with extracted vehicle data. * An overall summary with a buying recommendation and a relevant emoji indicating the overall rating. ## Deployment to Hugging Face Spaces: To deploy this application on Hugging Face Spaces, follow these steps: 1. Save your main application code (e.g., this notebook content converted to a Python script) as `app.py`. 2. Ensure you have a `requirements.txt` file (already created) that lists all necessary Python dependencies. 3. Create a new Space on Hugging Face (e.g., using the Gradio SDK template). 4. Upload your `app.py` and `requirements.txt` files to the Space. 5. The Space will automatically install the dependencies and launch your Gradio application.