import gradio as gr # List of apps with added Google Drive input links apps = [ { "name": "Auto DPR Generator", "url": "https://huggingface.co/spaces/Rammohan0504/DPR-5", "description": "Generates detailed progress reports based on uploaded site images, streamlining documentation.", "input": "inputs DPR", "drive_url": "https://drive.google.com/drive/folders/1w3FHuP6HOlKDur_r5lcnM8iXqBKdFors?usp=sharing" }, { "name": "AI Based Work Progress Verifier", "url": "https://huggingface.co/spaces/Rekham1110/Construction_Project1", "description": "Automatically detects construction milestones from site images and updates Salesforce with completion percentages and tags.", "input": "Work Progress Verifier", "drive_url": "https://drive.google.com/drive/folders/106UNEiyLKQu1aZfTFyXACdYY-_BYJlEg?usp=sharing" }, { "name": "Safety Violation CCTV AI Full", "url": "https://huggingface.co/spaces/PrashanthB461/Safety_Violation_CCTV_AI", "description": "Real-time detection of safety violations like missing helmets or unauthorized access, with alerts via Salesforce dashboard.", "input": "Safety Violation", "drive_url": "https://drive.google.com/drive/folders/1SfJWnUPU7lxSkPrAYiu4bqRFFl-cvChs?usp=sharing" }, { "name": "Material Reconciliation", "url": "https://huggingface.co/spaces/VijayPulmamidi/MaterialReconciliationAI", "description": "Tracks materials from purchase to usage, preventing waste, theft, or mismanagement.", "input": "materialreconciliation", "drive_url": "https://drive.google.com/drive/folders/1CFOC32FqxPhjLMUdPzUjH76uVSvtnbHL?usp=sharing" }, { "name": "Material Estimator", "url": "https://kushalmanda-yolov5-blueprint-analysis.hf.space", "description": "Provides accurate material estimations for construction projects based on blueprints and inputs.", "input": "material estimator", "drive_url": "https://drive.google.com/drive/folders/1WMWiqk7sw5Nn7YE9m0TFWcEvMY5Bje-A?usp=sharing" }, { "name": "AI Coach Site Supervisor", "url": "https://huggingface.co/spaces/geethareddy/geethaAICoach3", "description": "Generates daily checklists, milestone-based focus suggestions, and reflection logs for site supervisors.", "input": "AI Coach Site Supervisor", "drive_url": "https://drive.google.com/drive/folders/1M_IvEL3eezcIGlDMwOeyMubPIYOeWSGm?usp=sharing" }, { "name": "Smart Finishing Material Estimator", "url": "https://huggingface.co/spaces/himabindug212/estimation_material", "description": "Estimates quantities of finishing materials like tiles, paint, and panels with auto-calculated results.", "input": "Smart Finisher Material Estimator", "drive_url": "https://drive.google.com/drive/folders/167c5Ej-O1Hcl0UdXMmlMAbzrOOwllWnc?usp=sharing" }, { "name": "Labour Attendance Analyzer", "url": "https://huggingface.co/spaces/lavanya121/attendance-forecasting_121", "description": "Monitors labour attendance, identifies shortage risks, and suggests actionable solutions.", "input": "Labour Attendance", "drive_url": "https://drive.google.com/drive/folders/1sanCj7li9wGlX_VPJmIjdpPyOR-WQrmX?usp=sharing" }, { "name": "AI Estimator Daily Requirements", "url": "https://huggingface.co/spaces/Naveensai/Construction-Forecast-App", "description": "Forecasts daily labour and material requirements for efficient construction site management.", "input": "AI Estimator Daily Requirements", "drive_url": "https://drive.google.com/drive/folders/1fe3Bu0cPjMCTsQDaqBRI7TkqSs9105zP?usp=sharing" }, ] # Function to generate HTML content def display_apps(search_query="", filter_input="All"): # Filter apps based on search query and input category filtered_apps = apps if search_query: filtered_apps = [ app for app in filtered_apps if search_query.lower() in app["name"].lower() or search_query.lower() in app["input"].lower() ] if filter_input != "All": filtered_apps = [app for app in filtered_apps if app["input"] == filter_input] # Generate HTML with embedded CSS and JavaScript html_content = """
{app['description']}
Category: {app['input']}