capradeepgujaran's picture
Update README.md
a3e80e3 verified
|
raw
history blame
3.1 kB
metadata
license: mit
title: Construction Site Safety Analyzer
sdk: gradio
emoji: 🏒
colorFrom: blue
colorTo: green
short_description: ' AI tool designed to enhance workplace safety and compliance'
sdk_version: 5.1.0

Construction Site Safety Analyzer

Description:
The Construction Site Safety Analyzer is a powerful tool designed to enhance workplace safety and compliance through advanced image and video analysis. Utilizing cutting-edge technologies like Llama 3.2 90B Vision and expert chat assistance, this application helps identify potential hazards, ensure adherence to safety standards, and recommend actionable steps.

Features

  1. Multi-file Upload: Supports uploading multiple construction site images and videos simultaneously.
  2. Real-time Analysis: Instantly analyzes each uploaded file to detect safety issues, categorize them, and provide detailed descriptions.
  3. Expert Chat Assistance: Engages in real-time conversations to answer specific safety-related questions and provide additional insights.
  4. Summary Reports: Generates comprehensive reports summarizing all analyzed files and chat interactions.
  5. User-friendly Interface: Designed with ease of use in mind, featuring a clean and intuitive design.

Installation

To run the Construction Site Safety Analyzer, you need to have Python installed on your system. Follow these steps to install the required dependencies:

pip install gradio opencv-python-headless pillow numpy groq-sdk

Additionally, ensure you have a valid GROQ_API_KEY set in your environment variables. This key is necessary for interacting with the Groq API.

Usage

  1. Launch the Application: Run the script to start the Gradio interface.

    python your_script_name.py
    
  2. Upload Files: Navigate to the web interface and upload one or more construction site images or videos.

  3. Initiate Analysis: Click the "πŸ” Analyze Safety Hazards" button to start the analysis.

  4. View Results: The safety analysis results will be displayed in the chat interface, along with any expert chat responses.

  5. Download Reports: After completing your analysis, click the "πŸ“₯ Download Report" button to save a summary report of all interactions.

Customization

The application includes custom CSS for enhanced styling. You can modify the custom_css variable to customize the appearance according to your preferences.

Error Handling

The application includes robust error handling mechanisms to log and display errors encountered during file analysis, chat sessions, and report generation. Detailed logs can be found in the application's output console.

Contact

This Tool is developed by CA Pradeep Gujaran. For further support or inquiries, please contact us at [email protected] or through Linkedin https://www.linkedin.com/in/pradeep-gujaran-botguy/


This README provides a comprehensive overview of the Construction Site Safety Analyzer, its features, installation instructions, usage guide, customization options, and error handling mechanisms.