Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -57,80 +57,80 @@ custom_glossary = {
|
|
57 |
"Renewable Energy Systems": "Sistemas de Energía Renovable",
|
58 |
"Temporary Works": "Obras Temporales",
|
59 |
"Construction Waste Diversion": "Desviación de Residuos de Construcción"
|
60 |
-
|
61 |
-
Allowance
|
62 |
-
Apprenticeship
|
63 |
-
Backfilling
|
64 |
-
Beam
|
65 |
-
Blueprint
|
66 |
-
Bollard
|
67 |
-
Bracing
|
68 |
-
Brick Masonry
|
69 |
-
Budget Overrun
|
70 |
-
Building Code
|
71 |
-
Cantilever
|
72 |
-
Caulking
|
73 |
-
Ceiling Joist
|
74 |
-
Cement
|
75 |
-
Certificate of Occupancy
|
76 |
-
Chain Link Fence
|
77 |
-
Chipping
|
78 |
-
Cladding
|
79 |
-
Clear Span
|
80 |
-
Construction Drawings
|
81 |
-
Construction Schedule
|
82 |
-
Construction Staging
|
83 |
-
Contingency
|
84 |
-
Contract Bond
|
85 |
-
Curtain Wall
|
86 |
-
Damp Proofing
|
87 |
-
Dead Load
|
88 |
-
Demolition
|
89 |
-
Design Development
|
90 |
-
Detail Drawing
|
91 |
-
Drilled Pier
|
92 |
-
Drywall
|
93 |
-
Earthmoving
|
94 |
-
Elevation
|
95 |
-
Emergency Egress
|
96 |
-
Energy Modeling
|
97 |
-
Excavation
|
98 |
-
Expansion Joint
|
99 |
-
Exterior Finish
|
100 |
-
Fasteners
|
101 |
-
Field Verification
|
102 |
-
Final Walkthrough
|
103 |
-
Finishing
|
104 |
-
Fire Barrier
|
105 |
-
Flange
|
106 |
-
Floor Slab
|
107 |
-
Footing
|
108 |
-
Foundation Wall
|
109 |
-
Framing
|
110 |
-
Frost Line
|
111 |
-
Grade Beam
|
112 |
-
Grading
|
113 |
-
Ground Penetrating Radar
|
114 |
-
Hardscape
|
115 |
-
HVAC Ductwork
|
116 |
-
I-Beam
|
117 |
-
Insulation Rating
|
118 |
-
Interior Finish
|
119 |
-
Joist
|
120 |
-
Keyway
|
121 |
-
Lath
|
122 |
-
Load Testing
|
123 |
-
Louver
|
124 |
-
Masonry
|
125 |
-
Moisture Barrier
|
126 |
-
Mortar
|
127 |
-
Overhang
|
128 |
-
Parapet
|
129 |
-
Pile
|
130 |
-
Plaster
|
131 |
-
Plumbing Fixtures
|
132 |
-
Post-Tension Slab
|
133 |
-
Prefabricated Components
|
134 |
|
135 |
def preprocess_text(text, glossary):
|
136 |
# Sort terms by length to handle longer terms first
|
|
|
57 |
"Renewable Energy Systems": "Sistemas de Energía Renovable",
|
58 |
"Temporary Works": "Obras Temporales",
|
59 |
"Construction Waste Diversion": "Desviación de Residuos de Construcción"
|
60 |
+
"Aggregate": "Áridos",
|
61 |
+
"Allowance": "Asignación",
|
62 |
+
"Apprenticeship": "Aprendizaje",
|
63 |
+
"Backfilling": "Relleno",
|
64 |
+
"Beam": "Viga",
|
65 |
+
"Blueprint": "Plano",
|
66 |
+
"Bollard": "Bolardo",
|
67 |
+
"Bracing": "Arriostramiento",
|
68 |
+
"Brick Masonry": "Albañilería de Ladrillo",
|
69 |
+
"Budget Overrun": "Sobrecosto Presupuestario",
|
70 |
+
"Building Code": "Código de Construcción",
|
71 |
+
"Cantilever": "Voladizo",
|
72 |
+
"Caulking": "Sellado",
|
73 |
+
"Ceiling Joist": "Vigueta de Techo",
|
74 |
+
"Cement": "Cemento",
|
75 |
+
"Certificate of Occupancy": "Certificado de Ocupación",
|
76 |
+
"Chain Link Fence": "Cerca de Malla",
|
77 |
+
"Chipping": "Picado",
|
78 |
+
"Cladding": "Revestimiento",
|
79 |
+
"Clear Span": "Luz Libre",
|
80 |
+
"Construction Drawings": "Planos de Construcción",
|
81 |
+
"Construction Schedule": "Cronograma de Construcción",
|
82 |
+
"Construction Staging": "Escenario de Construcción",
|
83 |
+
"Contingency": "Contingencia",
|
84 |
+
"Contract Bond": "Fianza de Contrato",
|
85 |
+
"Curtain Wall": "Muro Cortina",
|
86 |
+
"Damp Proofing": "Impermeabilización",
|
87 |
+
"Dead Load": "Carga Muerta",
|
88 |
+
"Demolition": "Demolición",
|
89 |
+
"Design Development": "Desarrollo de Diseño",
|
90 |
+
"Detail Drawing": "Dibujo Detallado",
|
91 |
+
"Drilled Pier": "Pilote Perforado",
|
92 |
+
"Drywall": "Tablaroca",
|
93 |
+
"Earthmoving": "Movimiento de Tierras",
|
94 |
+
"Elevation": "Elevación",
|
95 |
+
"Emergency Egress": "Salida de Emergencia",
|
96 |
+
"Energy Modeling": "Modelado Energético",
|
97 |
+
"Excavation": "Excavación",
|
98 |
+
"Expansion Joint": "Junta de Expansión",
|
99 |
+
"Exterior Finish": "Acabado Exterior",
|
100 |
+
"Fasteners": "Fijaciones",
|
101 |
+
"Field Verification": "Verificación en Campo",
|
102 |
+
"Final Walkthrough": "Inspección Final",
|
103 |
+
"Finishing": "Acabado",
|
104 |
+
"Fire Barrier": "Barrera Contra Incendios",
|
105 |
+
"Flange": "Brida",
|
106 |
+
"Floor Slab": "Losa de Piso",
|
107 |
+
"Footing": "Zapata",
|
108 |
+
"Foundation Wall": "Muro de Cimentación",
|
109 |
+
"Framing": "Estructura",
|
110 |
+
"Frost Line": "Línea de Heladas",
|
111 |
+
"Grade Beam": "Viga de Cimentación",
|
112 |
+
"Grading": "Nivelación",
|
113 |
+
"Ground Penetrating Radar": "Radar de Penetración Terrestre",
|
114 |
+
"Hardscape": "Paisajismo Duro",
|
115 |
+
"HVAC Ductwork": "Conductos HVAC",
|
116 |
+
"I-Beam": "Viga en I",
|
117 |
+
"Insulation Rating": "Clasificación de Aislamiento",
|
118 |
+
"Interior Finish": "Acabado Interior",
|
119 |
+
"Joist": "Vigueta",
|
120 |
+
"Keyway": "Entalladura",
|
121 |
+
"Lath": "Listón",
|
122 |
+
"Load Testing": "Prueba de Carga",
|
123 |
+
"Louver": "Persiana",
|
124 |
+
"Masonry": "Albañilería",
|
125 |
+
"Moisture Barrier": "Barrera de Humedad",
|
126 |
+
"Mortar": "Mortero",
|
127 |
+
"Overhang": "Voladizo",
|
128 |
+
"Parapet": "Pretil",
|
129 |
+
"Pile": "Pilote",
|
130 |
+
"Plaster": "Yeso",
|
131 |
+
"Plumbing Fixtures": "Accesorios de Plomería",
|
132 |
+
"Post-Tension Slab": "Losa Postensada",
|
133 |
+
"Prefabricated Components": "Componentes Prefabricados"
|
134 |
|
135 |
def preprocess_text(text, glossary):
|
136 |
# Sort terms by length to handle longer terms first
|