A newer version of the Gradio SDK is available:
5.6.0
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
- Multi-file Upload: Supports uploading multiple construction site images and videos simultaneously.
- Real-time Analysis: Instantly analyzes each uploaded file to detect safety issues, categorize them, and provide detailed descriptions.
- Expert Chat Assistance: Engages in real-time conversations to answer specific safety-related questions and provide additional insights.
- Summary Reports: Generates comprehensive reports summarizing all analyzed files and chat interactions.
- 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
Launch the Application: Run the script to start the Gradio interface.
python your_script_name.py
Upload Files: Navigate to the web interface and upload one or more construction site images or videos.
Initiate Analysis: Click the "π Analyze Safety Hazards" button to start the analysis.
View Results: The safety analysis results will be displayed in the chat interface, along with any expert chat responses.
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.