neerajkalyank commited on
Commit
f7fc2bd
·
verified ·
1 Parent(s): bf3dfa1

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +90 -0
app.py ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # List of apps from the Excel data
4
+ apps = [
5
+ {
6
+ "name": "Auto DPR Generator",
7
+ "url": "https://huggingface.co/spaces/Rammohan0504/DPR-5",
8
+ "description": "Generates Report based on image",
9
+ "input": "inputs DPR"
10
+ },
11
+ {
12
+ "name": "AI Based Work Progress Verifier",
13
+ "url": "https://huggingface.co/spaces/Rekham1110/Construction_Project1",
14
+ "description": "This module enables construction managers to upload site progress images, where an AI model automatically detects the reached milestone and updates the corresponding Salesforce object with completion percentage and milestone tag",
15
+ "input": "Work Progress Verifier"
16
+ },
17
+ {
18
+ "name": "Safety Violation CCTV AI Full",
19
+ "url": "https://huggingface.co/spaces/PrashanthB461/Safety_Violation_CCTV_AI",
20
+ "description": "This app detect safety violations in real-time, such as missing helmets, unsafe proximity to machinery, and unauthorized access zones, and alerts site authorities through the Salesforce dashboard.",
21
+ "input": "Safety Violation"
22
+ },
23
+ {
24
+ "name": "Material Reconciliation",
25
+ "url": "https://huggingface.co/spaces/VijayPulmamidi/MaterialReconciliationAI",
26
+ "description": "The app helps construction companies track materials (like cement or steel) from purchase to use, ensuring nothing is wasted, stolen, or mismanaged.",
27
+ "input": "materialreconciliation"
28
+ },
29
+ {
30
+ "name": "Material Estimator",
31
+ "url": "https://kushalmanda-yolov5-blueprint-analysis.hf.space",
32
+ "description": "IT gives estimation about the construction with required materials",
33
+ "input": "material estimator"
34
+ },
35
+ {
36
+ "name": "AI Coach Site Supervisor",
37
+ "url": "https://huggingface.co/spaces/geethareddy/geethaAICoach3",
38
+ "description": "Generate Dailychecklist, focussuggestion based on milestone, reflectionlog",
39
+ "input": "AI Coach Site Supervisor"
40
+ },
41
+ {
42
+ "name": "Smart Finishing Material Estimator",
43
+ "url": "https://huggingface.co/spaces/himabindug212/estimation_material",
44
+ "description": "This app allows builders to quickly estimate quantities of finishing materials (tiles, paint, POP, Panels) based on input and type of the material to auto-calculate estimates.",
45
+ "input": "Smart Finisher Material Estimator"
46
+ },
47
+ {
48
+ "name": "Labour Attendance Analyzer",
49
+ "url": "https://huggingface.co/spaces/lavanya121/attendance-forecasting_121",
50
+ "description": "In the construction site it shows the Labour Attendance and based on alert stats it gives shortage risk and suggestion actions",
51
+ "input": "Labour Attendance"
52
+ },
53
+ ]
54
+
55
+ # Function to generate HTML content
56
+ def display_apps():
57
+ html_content = """
58
+ <style>
59
+ body { font-family: Arial, sans-serif; }
60
+ h1 { color: #333; text-align: center; }
61
+ .app-container { margin: 20px 0; }
62
+ .app-name { font-size: 1.5em; font-weight: bold; color: #007bff; }
63
+ .app-description { font-size: 1em; color: #444; }
64
+ .app-input { font-size: 1em; color: #444; font-style: italic; }
65
+ .app-link { color: #007bff; text-decoration: none; font-weight: bold; }
66
+ .app-link:hover { text-decoration: underline; }
67
+ hr { border: 1px solid #ddd; margin: 20px 0; }
68
+ </style>
69
+ <h1>Construction Apps</h1>
70
+ <p style='text-align: center; color: #555;'>A collection of AI-powered applications designed to enhance construction project management and efficiency.</p>
71
+ """
72
+
73
+ for app in apps:
74
+ html_content += f"""
75
+ <div class='app-container'>
76
+ <div class='app-name'>{app['name']}</div>
77
+ <div class='app-description'><b>Description:</b> {app['description']}</div>
78
+ <div class='app-input'><b>Input:</b> {app['input']}</div>
79
+ <div><a class='app-link' href='{app['url']}' target='_blank'>Open App</a></div>
80
+ </div>
81
+ <hr>
82
+ """
83
+
84
+ return html_content
85
+
86
+ # Gradio interface
87
+ with gr.Blocks(title="Construction Apps") as demo:
88
+ gr.HTML(display_apps)
89
+
90
+ demo.launch()