capradeepgujaran commited on
Commit
bbbad70
1 Parent(s): bd6d58e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -68
app.py CHANGED
@@ -411,7 +411,7 @@ class CertificateGenerator:
411
 
412
  # Add instructor info
413
  draw.text((60, y_offset + 160), "Instructor", font=fonts['subtitle'], fill='#666666')
414
- draw.text((60, y_offset + 190), "QHSE Manager", font=fonts['text'], fill='#1C1D1F')
415
 
416
  # Add participant name (large)
417
  name = name.strip() or "Participant"
@@ -593,70 +593,25 @@ class QuizApp:
593
  }
594
 
595
  # Add fixed content here
596
- self.fixed_content = """Introduction to Construction Safety
597
- The construction industry remains one of the most hazardous sectors in the global workforce, presenting numerous risks to worker safety and health. This comprehensive guide addresses the fundamental aspects of construction site safety, providing detailed insights into best practices, regulatory requirements, and practical implementation strategies. Safety in construction isn't merely a legal obligation—it represents a moral imperative to protect human life and ensure the well-being of every individual working in this challenging environment.
598
- Construction site safety encompasses multiple interconnected elements, from personal protective equipment to emergency response protocols. Success in safety management requires unwavering commitment from all organizational levels, from executive leadership to front-line workers. This guide serves as a foundational resource for construction professionals, safety managers, and workers, offering detailed insights into creating and maintaining a safe working environment.
599
- Personal Protective Equipment (PPE)
600
-
601
- Personal protective equipment forms the first line of defense against workplace injuries in construction environments. Every worker on a construction site must understand the importance of proper PPE selection, use, and maintenance. Organizations must establish comprehensive PPE programs addressing specific site hazards while ensuring compliance with applicable regulations and standards.
602
- Head protection serves as a critical component of personal protective equipment in construction environments. Every worker must wear appropriate hard hats meeting ANSI Z89.1 standards whenever present on site. Type I hard hats protect against vertical impact and penetration, while Type II hard hats provide additional protection against lateral impact. Construction supervisors must ensure regular inspection of all hard hats for signs of damage, including cracks, dents, or UV degradation. Workers should replace their hard hats every five years from the manufacture date, or immediately following any significant impact. Proper fitting requires adjustable suspension systems that maintain a one-inch clearance between the shell and the wearer's head.
603
- Eye and face protection requirements address multiple hazards present in construction environments. Basic eye protection begins with safety glasses featuring side shields meeting ANSI Z87.1 standards. Workers performing tasks involving flying particles, such as grinding or cutting operations, must supplement basic eye protection with face shields. Those working outdoors require tinted protection against UV radiation, while chemical handling demands sealed goggles to prevent splash exposure. Organizations must establish and enforce proper cleaning protocols for all eye protection equipment, ensuring clear vision and maximum protection throughout the workday.
604
- Foot protection prevents countless injuries in construction environments through proper selection and use of safety footwear. Workers must wear safety boots meeting ASTM F2413-18 standards, featuring steel or composite toe caps capable of withstanding impacts up to 75 pounds. Safety boots must incorporate puncture-resistant soles protecting against sharp objects and electrical hazard protection appropriate to working conditions. The outer soles require slip-resistant properties with clearly defined tread patterns maintained through regular inspection and replacement. Workers in wet conditions need waterproof options to maintain foot health and prevent discomfort that might lead to unsafe practices.
605
- Hand protection requirements vary based on specific task hazards and working conditions. Cut-resistant gloves meeting ANSI/ISEA 105 standards protect against sharp materials and tools. Impact-resistant gloves incorporate padding to protect against crushing injuries during material handling. Chemical-resistant gloves prevent skin exposure to harmful substances, while electrical work requires insulated gloves meeting appropriate voltage ratings. Organizations must train workers in proper glove selection, inspection, and replacement schedules to maintain protective capabilities.
606
- Respiratory protection becomes necessary when construction activities generate airborne hazards exceeding permissible exposure limits. Organizations must establish comprehensive respiratory protection programs following OSHA Standard 1910.134. Workers exposed to dust and particles require minimum N95-rated filtering facepieces, while chemical exposures may demand half-face or full-face respirators with appropriate cartridges. All workers using respirators must undergo medical evaluation, fit testing, and proper training in use and maintenance. Organizations must maintain detailed records of respirator assignments, cartridge changes, and fit test results.
607
- High-visibility clothing ensures worker visibility in all working conditions, particularly crucial in areas with vehicle traffic or heavy equipment operation. Workers must wear high-visibility clothing meeting ANSI/ISEA 107 standards, with Class 2 garments sufficing for daytime work and moderate traffic conditions, while Class 3 garments become necessary in high-traffic areas or low-light conditions. Reflective materials must maintain their properties through regular cleaning and inspection. Organizations should implement color-coding systems differentiating various worker roles while maintaining minimum visibility requirements.
608
- Fall Protection Systems
609
-
610
- Fall protection represents one of the most critical aspects of construction safety, requiring comprehensive planning and implementation. Organizations must develop written fall protection plans for all work conducted at heights exceeding six feet in construction environments. These plans must address specific fall hazards, protection methods, rescue procedures, and training requirements.
611
- Guardrail systems provide primary fall protection around elevated work areas, requiring proper installation and regular maintenance. Top rails must maintain a height of 42 inches (±3 inches) and withstand a force of 200 pounds applied in any outward or downward direction. Mid-rails positioned at 21 inches provide additional protection, while toe boards preventing falling objects must extend at least 4 inches above the walking surface. Support posts cannot exceed 8-foot spacing intervals, and all components require regular inspection for structural integrity.
612
- Personal fall arrest systems become necessary when guardrail systems prove impractical or insufficient. These systems include full-body harnesses, connectors, and appropriate anchorage points supporting 5,000 pounds per attached worker. Organizations must train workers in proper harness fitting, inspection procedures, and attachment techniques. Regular inspection programs must document the condition of all components, including impact indicators and hardware integrity.
613
- Fall protection programs must address rescue considerations, ensuring prompt response to suspended workers following fall arrest. Rescue plans must detail specific procedures, equipment requirements, and personnel responsibilities. Organizations must conduct regular rescue drills verifying the effectiveness of established procedures and identifying potential improvements.
614
- Equipment and Machinery Safety
615
-
616
- Heavy equipment operation demands rigorous safety protocols and continuous monitoring ensuring safe operation. Every piece of heavy equipment requires daily pre-operational inspections following detailed checklists covering all critical systems. Operators must possess appropriate certification and demonstrate competency through practical evaluation before receiving authorization to operate equipment.
617
- Equipment maintenance programs must follow manufacturer specifications, with detailed documentation of all service activities. Organizations must implement lockout/tagout procedures during maintenance operations, ensuring equipment cannot be energized while service work proceeds. Operators must maintain inspection logs recording equipment hours, operating conditions, and any observed abnormalities.
618
- Power tool safety begins with proper selection and maintenance of tools appropriate for specific tasks. Organizations must establish tool inspection programs verifying the condition of guards, power cords, and safety devices before each use. Workers must receive task-specific training covering proper tool operation, recognized hazards, and required protective measures.
619
- Crane operations require comprehensive planning and continuous monitoring to maintain safe working conditions. Organizations must develop detailed lift plans for all crane operations, considering load weights, lift radius, ground conditions, and environmental factors. Qualified riggers must inspect all lifting equipment before use, verifying the condition of hooks, slings, shackles, and other components.
620
-
621
- Site Organization and Management
622
- Effective site organization plays a fundamental role in maintaining safe construction operations. Site layout must consider traffic patterns, material storage requirements, and emergency access needs. Organizations must develop comprehensive site plans identifying designated work areas, storage locations, and access routes supporting safe operations while maintaining operational efficiency.
623
- Access control and security measures protect both workers and property while preventing unauthorized site entry. Entry points must feature staffed checkpoints verifying worker identification and site authorization. Visitor management protocols must include safety orientation, protective equipment requirements, and escort procedures when necessary. Organizations must maintain accurate site occupancy records supporting emergency response and evacuation procedures.
624
- Material storage and handling requires careful planning preventing numerous workplace injuries while maintaining site efficiency. Organizations must develop storage plans considering material characteristics, handling requirements, and access needs. Storage areas require clear designation, appropriate lighting, and protection from weather conditions affecting material integrity. Segregation requirements must address chemical compatibility, fire hazard classes, and environmental protection needs.
625
- Traffic management systems prevent vehicle-related accidents while maintaining efficient site operations. Traffic plans must separate vehicle and pedestrian routes wherever possible, implementing physical barriers when separation cannot be maintained. Speed limits, stop signs, and traffic control devices must regulate vehicle movement throughout the site. Loading zones require clear designation, with established procedures for vehicle positioning and personnel exclusion during loading operations.
626
- Housekeeping practices significantly impact site safety through maintenance of clear access ways and work areas. Organizations must establish daily cleaning requirements addressing debris removal, material organization, and maintenance of walking surfaces. Regular inspections must verify compliance with housekeeping standards, identifying potential hazards requiring immediate attention.
627
-
628
- Emergency Preparedness and Response
629
- Emergency preparedness requires comprehensive planning addressing various potential emergency scenarios. Organizations must develop written emergency response plans covering fires, medical emergencies, severe weather, and hazardous material releases. These plans must designate response team members, establish clear communication channels, and define specific response procedures for each type of emergency.
630
- Medical response capabilities must match site hazards and workforce size. First aid stations require strategic placement throughout the site, with supplies appropriate to potential injuries. Organizations must ensure sufficient numbers of trained first aid providers on each work shift, maintaining current certification records. Emergency medical equipment, including automated external defibrillators, requires regular inspection and maintenance ensuring operational readiness.
631
- Fire prevention and response programs must address potential fire hazards through comprehensive prevention and response measures. Organizations must develop fire prevention plans identifying potential ignition sources, fuel sources, and required control measures. Hot work permits must regulate operations producing flames, sparks, or excessive heat, with fire watch requirements extending beyond work completion.
632
- Evacuation procedures must address various emergency scenarios requiring site evacuation. Organizations must establish clearly marked evacuation routes, designated assembly areas, and procedures for accounting for all personnel. Regular evacuation drills must verify worker understanding of procedures while identifying potential improvements in evacuation capabilities.
633
- Emergency communication systems must support rapid notification of emergency conditions while maintaining clear communication channels during emergency response. Organizations must establish redundant communication methods ensuring effective communication despite potential system failures. Regular testing must verify system functionality while familiarizing workers with proper operation.
634
-
635
- Training and Communication
636
- Training programs form the foundation of effective safety management through development of worker knowledge and skills. Organizations must establish comprehensive training programs addressing site-specific hazards, safety procedures, and emergency response requirements. New worker orientation must provide thorough introduction to site safety requirements before beginning work activities.
637
- Task-specific training must address hazards and safety requirements associated with specific work activities. Workers must demonstrate competency through practical evaluation before performing hazardous tasks independently. Refresher training maintains worker knowledge while addressing identified performance deficiencies or procedure changes.
638
- Safety communication systems must support continuous awareness of safety requirements and potential hazards. Daily pre-task safety meetings must address specific hazards and controls associated with planned work activities. Weekly toolbox talks provide focused discussion of relevant safety topics while maintaining worker engagement in safety programs.
639
- Documentation requirements include detailed records of all training activities, including attendance records, evaluation results, and certification expiration dates. Organizations must maintain training records demonstrating worker qualification for specific tasks while identifying upcoming training requirements maintaining worker certifications.
640
-
641
- Health Monitoring and Protection
642
- Occupational health monitoring programs protect workers from long-term health hazards through early identification of potential health impacts. Organizations must establish monitoring programs appropriate to site-specific health hazards, including noise exposure, air quality, and ergonomic factors. Regular monitoring must verify effectiveness of control measures while identifying potential areas requiring additional protection.
643
- Noise monitoring programs must identify areas requiring hearing protection while verifying effectiveness of implemented controls. Organizations must conduct regular noise surveys establishing boundaries of hearing protection requirements. Worker audiometric testing programs monitor potential hearing impacts while verifying effectiveness of hearing conservation measures.
644
- Air quality monitoring addresses both general site conditions and task-specific exposures. Organizations must implement monitoring programs identifying potential exposure to harmful substances while verifying effectiveness of control measures. Documentation requirements include sampling results, equipment calibration records, and worker exposure records.
645
- Ergonomic evaluation programs address potential musculoskeletal injuries through proper task design and work practices. Organizations must evaluate work activities identifying potential ergonomic hazards while implementing appropriate control measures. Worker training must address proper lifting techniques, use of mechanical assists, and early reporting of discomfort.
646
-
647
- Legal Compliance and Documentation
648
- Regulatory compliance programs ensure adherence to applicable safety regulations while maintaining required documentation demonstrating compliance. Organizations must establish systems identifying applicable regulations while monitoring regulatory changes affecting safety requirements. Regular compliance audits verify effectiveness of implemented programs while identifying areas requiring improvement.
649
- Documentation systems must support various aspects of safety program implementation while meeting regulatory requirements. Required documentation includes training records, inspection reports, incident investigations, and exposure monitoring results. Organizations must establish document control systems ensuring availability of current procedures while maintaining historical records.
650
- Incident investigation programs identify root causes of accidents while implementing corrective measures preventing recurrence. Organizations must establish investigation procedures ensuring thorough evaluation of all incidents, including near-miss events. Documentation requirements include investigation reports, witness statements, and corrective action tracking.
651
-
652
- Risk Assessment and Management
653
- Risk assessment processes identify potential hazards while evaluating adequacy of existing controls. Organizations must implement formal risk assessment procedures addressing planned activities and changing site conditions. Assessment results guide implementation of additional controls while identifying activities requiring increased supervision.
654
- Job hazard analysis procedures evaluate specific tasks identifying potential hazards and necessary control measures. Organizations must conduct analyses for hazardous activities, documenting identified hazards and required controls. Regular review ensures continued adequacy of established controls while identifying potential improvements in work procedures.
655
- Change management programs address safety implications of operational changes through formal evaluation processes. Organizations must establish procedures ensuring safety evaluation of proposed changes before implementation. Documentation requirements include change proposals, risk assessments, and implementation plans.
656
-
657
- Continuous Improvement
658
- Safety program effectiveness requires regular evaluation identifying potential improvements while maintaining program relevance. Organizations must establish review processes evaluating various program elements while incorporating lessons learned from incidents and near-misses. Worker feedback mechanisms support program improvement through identification of practical challenges in procedure implementation.
659
- Performance metrics provide objective measurement of safety program effectiveness while identifying trends requiring attention. Organizations must establish appropriate metrics reflecting both leading and lagging indicators of safety performance. Regular review of performance data supports identification of program elements requiring improvement."""
660
 
661
  def get_certificate_title(self, base_title: str) -> str:
662
  """Get certificate title with difficulty level"""
@@ -841,7 +796,7 @@ def create_quiz_interface():
841
  # Header
842
  gr.Markdown("""
843
  <div style="text-align: center;">
844
- <h1>🎓 Construction Safety Assessment Certification </h1>
845
  <h3>Transform Your Knowledge into Recognized Achievements</h3></p>
846
  </div>
847
 
@@ -940,7 +895,7 @@ def create_quiz_interface():
940
  score_display = gr.Number(label="Your Score", visible=False)
941
  course_name = gr.Textbox(
942
  label="Certification Title",
943
- value=lambda: f"Construction Safety Assessment Certification", # Dynamic title with level
944
  interactive=False
945
  )
946
  certificate_display = gr.Image(label="Your Certificate")
@@ -950,7 +905,7 @@ def create_quiz_interface():
950
  return [
951
  gr.update(visible=True), # Make cert_tab visible
952
  gr.update(
953
- value=f"Construction Safety Assessment Certification" # Update title with level
954
  ),
955
  gr.update(selected=3) # Switch to cert_tab
956
  ]
 
411
 
412
  # Add instructor info
413
  draw.text((60, y_offset + 160), "Instructor", font=fonts['subtitle'], fill='#666666')
414
+ draw.text((60, y_offset + 190), "AI Teacher", font=fonts['text'], fill='#1C1D1F')
415
 
416
  # Add participant name (large)
417
  name = name.strip() or "Participant"
 
593
  }
594
 
595
  # Add fixed content here
596
+ self.fixed_content = """The Earth's natural resources form the foundation of human civilization, providing essential materials for survival and industrial development. These resources are categorized into renewable and non-renewable types, with fossil fuels representing crucial non-renewable energy sources. Coal and petroleum, formed over millions of years from decomposed organic matter, underwent complex geological processes under specific conditions of temperature and pressure. Coal formation occurred primarily from plant matter in ancient swamps, while petroleum developed from marine organisms in prehistoric seas. The extraction of these resources involves sophisticated mining and drilling operations, with coal obtained through surface or underground mining techniques depending on deposit depth. Petroleum extraction requires advanced drilling technology, often extending thousands of meters below the Earth's surface. These fossil fuels serve multiple purposes, functioning as energy sources and raw materials for various industrial processes, though their combustion releases greenhouse gases and other pollutants into the atmosphere, contributing to environmental challenges including climate change and air quality degradation.
597
+ The process of combustion represents a fundamental chemical reaction involving fuel and oxygen, producing heat and light energy. Different types of combustion exist, including rapid combustion, spontaneous combustion, and explosive combustion, each characterized by specific reaction rates and energy release patterns. A flame's structure exhibits distinct zones with varying temperatures and chemical compositions. The innermost zone contains unburned fuel vapors, while the middle zone hosts active combustion reactions. The outer zone represents the complete combustion region, where maximum temperature occurs. Fuels vary in their combustion efficiency and energy output, with different materials requiring specific conditions for ignition and sustained burning. Fire safety protocols emphasize prevention and control measures, including proper fuel storage, ventilation requirements, and emergency response procedures.
598
+ Living organisms display remarkable diversity in their reproductive strategies, ensuring species continuation through various mechanisms. Sexual reproduction, prevalent in complex organisms, involves the fusion of male and female gametes through fertilization. This process combines genetic material from both parents, producing offspring with unique genetic combinations that contribute to species adaptability and evolution. Reproductive systems in different animal groups show specialized adaptations, from external fertilization in aquatic organisms to internal fertilization in terrestrial species. Mammals exhibit particularly complex reproductive processes, including internal fertilization, embryonic development within the uterus, and post-birth parental care. Asexual reproduction, observed in simpler organisms, creates genetically identical offspring from a single parent through processes like budding, fragmentation, and binary fission. This reproductive method enables rapid population growth under favorable conditions but limits genetic diversity.
599
+ Adolescence represents a critical developmental period characterized by significant physical, psychological, and social changes. This transition phase, typically occurring between ages 11 and 19, involves complex hormonal interactions orchestrated by the endocrine system. The hypothalamus and pituitary gland initiate puberty by releasing hormones that stimulate the gonads to produce sex hormones. These hormones trigger the development of secondary sexual characteristics, including voice changes, body hair growth, and reproductive organ maturation. Growth hormones promote rapid physical development, resulting in increased height, muscle mass, and bone density. Emotional and psychological changes accompany physical development, influenced by both hormonal fluctuations and social factors. Understanding these changes helps adolescents navigate this challenging period while maintaining physical and mental well-being.
600
+ Forces govern all physical interactions in the universe, from subatomic particles to celestial bodies. Different types of forces include contact forces, requiring direct physical interaction, and non-contact forces, operating through fields. Gravitational force, a fundamental non-contact force, attracts all objects with mass toward each other, determining planetary motions and everyday phenomena like falling objects. Electromagnetic forces, responsible for atomic and molecular interactions, include both attractive and repulsive components. Pressure, representing force per unit area, manifests in various natural and technological contexts. Atmospheric pressure results from air molecule collisions, varying with altitude and weather conditions. Liquid pressure increases linearly with depth due to fluid weight, following Pascal's principle of pressure transmission. Understanding pressure principles enables technologies ranging from hydraulic systems to atmospheric pressure applications.
601
+ Friction arises from surface irregularities and molecular interactions between objects in contact. The nature and magnitude of frictional forces depend on surface characteristics, normal force, and relative motion states. Static friction prevents relative motion between stationary surfaces, while kinetic friction opposes motion between sliding surfaces. Rolling friction, typically lower than sliding friction, occurs with wheeled or spherical objects. Friction plays both beneficial and detrimental roles in daily life and technological applications. Beneficial aspects include enabling walking, writing, and mechanical grip, while disadvantages include energy loss, wear, and reduced efficiency in machines. Various methods modify friction, including lubrication, surface treatment, and material selection, optimizing it for specific applications.
602
+ Sound represents a mechanical wave phenomenon requiring a material medium for propagation. These waves transfer energy through matter via alternating compression and rarefaction regions. Sound wave characteristics determine audible properties, with frequency determining pitch and amplitude affecting loudness. The human auditory range spans approximately 20 Hz to 20,000 Hz, though this varies with age and individual factors. Sound waves exhibit behaviors including reflection, refraction, and diffraction. Reflection produces echoes and enables technologies like sonar and ultrasound imaging. Musical instruments generate sound through various mechanisms, including vibrating strings, air columns, and membranes, each producing characteristic timbres through harmonic combinations. Understanding sound principles enables acoustic design, noise control, and audio technology development.
603
+ Chemical effects of electric current demonstrate the interrelation between electrical and chemical processes. Electrolysis represents a fundamental electrochemical process where electrical energy drives chemical reactions, decomposing compounds into constituent elements. This process requires an electrolyte solution conducting electricity through ion movement, with electrodes serving as sites for oxidation and reduction reactions. Electroplating applications utilize electrolysis principles to deposit metal coatings on objects, providing decorative finishes or corrosion protection. Factors affecting electroplating include current density, solution concentration, and temperature. Industrial applications extend to metal purification, electrochemical manufacturing, and battery technology. Understanding these principles enables various practical applications in metallurgy, electronics, and chemical processing.
604
+ Natural phenomena encompass various geological and atmospheric events shaping Earth's environment. Lightning results from charge separation in clouds, creating potential differences leading to electrical discharge. This process involves complex atmospheric dynamics, including updrafts, precipitation, and charge distribution. Thunder accompanies lightning due to rapid air expansion from intense heating. Earthquakes originate from tectonic plate movements, releasing stored energy as seismic waves. Primary waves (P-waves) involve compression and rarefaction, while secondary waves (S-waves) create perpendicular displacements. Surface waves cause the most significant damage to structures. Understanding these phenomena enables better prediction, protection, and response strategies for natural disasters.
605
+ Light exhibits complex behavior explained through both wave and particle models. As electromagnetic radiation, light propagates through space at approximately 3×10⁸ meters per second in vacuum. When encountering matter, light undergoes various interactions including reflection, refraction, dispersion, and absorption. Reflection follows specific laws relating incident and reflected angles, enabling mirror applications and optical instruments. Refraction occurs at medium boundaries due to velocity changes, causing light ray deviation. This principle explains various optical phenomena including rainbow formation and lens operation. Different materials exhibit varying optical properties, including refractive index and transparency, influencing light behavior. Understanding these principles enables technologies ranging from fiber optics to solar cells.
606
+ Microorganisms comprise diverse microscopic life forms including bacteria, viruses, fungi, and protozoa. These organisms play crucial ecological roles in nutrient cycling, decomposition, and maintaining environmental balance. Beneficial microorganisms contribute to food production through fermentation, nitrogen fixation in agriculture, and waste treatment processes. Harmful microorganisms cause diseases through various mechanisms including infection, toxin production, and immune system disruption. Proper sanitation, food handling, and personal hygiene help prevent microbial infections. Modern biotechnology utilizes microorganisms for producing medicines, enzymes, and other valuable products. Understanding microbial biology enables better disease control and beneficial application development.
607
+ Crop production involves systematic agricultural practices optimizing plant growth and yield. Modern farming combines traditional knowledge with scientific methods, employing mechanization and precision agriculture techniques. Soil preparation includes plowing, leveling, and nutrient management through organic and inorganic fertilizers. Seed selection considers factors including climate adaptation, disease resistance, and yield potential. Irrigation methods range from surface flooding to efficient drip systems, optimizing water usage. Crop protection involves integrated pest management combining biological, chemical, and cultural control methods. Harvesting timing and techniques affect crop quality and storage stability. Sustainable agriculture practices balance productivity with environmental conservation.
608
+ Biodiversity conservation requires comprehensive strategies protecting species and ecosystems. Protected areas establish legal frameworks for habitat preservation, while species recovery programs target endangered populations. Human activities including urbanization, pollution, and climate change threaten biodiversity through habitat destruction and ecosystem disruption. Conservation approaches include both in-situ protection in natural habitats and ex-situ preservation through botanical gardens and seed banks. Ecosystem restoration projects aim to rehabilitate damaged environments, while public awareness programs promote conservation understanding and support. International agreements and national legislation provide legal frameworks for biodiversity protection.
609
+ Matter exists in various states with distinct physical and chemical properties. Atomic structure determines chemical behavior, with electrons participating in bonding and reactions. Chemical reactions involve breaking and forming bonds, often accompanied by energy changes. Different reaction types include combination, decomposition, displacement, and double displacement reactions. Factors affecting reaction rates include temperature, concentration, surface area, and catalysts. Understanding chemical principles enables material development and process optimization across industries.
610
+ Energy transformations occur continuously in natural and artificial systems. Various energy forms include mechanical, electrical, thermal, chemical, and nuclear energy. Energy conservation principles state that energy cannot be created or destroyed, only converted between forms. Energy efficiency measures how effectively energy converts between forms, with some energy always lost as heat. Renewable energy sources including solar, wind, and hydroelectric power offer sustainable alternatives to fossil fuels. Energy conservation strategies reduce consumption and environmental impact through improved efficiency and behavioral changes.
611
+ Climate and weather patterns result from complex atmospheric and oceanic interactions. Air pressure differences drive wind patterns, while water cycle processes create precipitation. Global climate systems influence regional weather conditions through air mass movements and ocean currents. Climate change affects temperature patterns, precipitation distribution, and extreme weather frequency. Understanding these systems enables weather prediction and climate change adaptation strategies.
612
+ Technological advancement continues transforming society through innovations in various fields. Digital technology revolutionizes communication, information processing, and automation. Biotechnology applications include genetic engineering, medical treatments, and agricultural improvements. Materials science develops new substances with specific properties for various applications. Understanding technology principles enables informed decisions about its development and application while considering ethical implications.
613
+ Mathematical relationships describe natural phenomena and enable scientific understanding. Quantitative analysis involves measurement, data collection, and statistical analysis. Graphs and equations represent relationships between variables, enabling prediction and modeling. Mathematical tools help solve complex problems and verify scientific theories. Understanding mathematical principles enables better scientific investigation and technological development.
614
+ Human health involves physical, mental, and social well-being maintenance. The immune system protects against disease through various mechanisms including specific and non-specific responses. Nutrition principles guide proper diet selection for optimal health maintenance. Exercise benefits include improved cardiovascular health, strength, and mental well-being. Understanding health principles enables better personal wellness management and disease prevention."""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
615
 
616
  def get_certificate_title(self, base_title: str) -> str:
617
  """Get certificate title with difficulty level"""
 
796
  # Header
797
  gr.Markdown("""
798
  <div style="text-align: center;">
799
+ <h1>🎓 Student Assessment Certification </h1>
800
  <h3>Transform Your Knowledge into Recognized Achievements</h3></p>
801
  </div>
802
 
 
895
  score_display = gr.Number(label="Your Score", visible=False)
896
  course_name = gr.Textbox(
897
  label="Certification Title",
898
+ value=lambda: f"Student Assessment Certification", # Dynamic title with level
899
  interactive=False
900
  )
901
  certificate_display = gr.Image(label="Your Certificate")
 
905
  return [
906
  gr.update(visible=True), # Make cert_tab visible
907
  gr.update(
908
+ value=f"Student Assessment Certification" # Update title with level
909
  ),
910
  gr.update(selected=3) # Switch to cert_tab
911
  ]