Spaces:
Running
Running
Ilyas KHIAT
commited on
Commit
•
7705d18
1
Parent(s):
26bb42c
emission detailed
Browse files- emissions.csv +13 -1
- empreinte_carbone.py +4 -1
emissions.csv
CHANGED
@@ -1453,4 +1453,16 @@ timestamp,project_name,run_id,duration,emissions,emissions_rate,cpu_power,gpu_po
|
|
1453 |
2024-07-17T15:22:23,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,1299.6629972457886,0.0015757739743055,1.2124481328197315e-06,42.5,5.217257501779273,5.86829710006714,0.0153409133081634,0.0011073058858439,0.0021167258961273,0.0185649450901348,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1454 |
2024-07-17T15:22:24,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,1301.2742683887482,0.001577810731867,1.2125120508382074e-06,42.5,5.385808445047688,5.86829710006714,0.0153599237331085,0.00110971060999,0.0021193067597305,0.018588941102829,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1455 |
2024-07-17T15:22:25,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,1301.460983991623,0.0015782231828582,1.2126550102314813e-06,42.5,47.40646448240405,5.86829710006714,0.0153621162295341,0.00111213005637,0.0021195540988581,0.0185938003847622,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1456 |
-
2024-07-17T15:22:25,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,1301.6380498409271,0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1453 |
2024-07-17T15:22:23,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,1299.6629972457886,0.0015757739743055,1.2124481328197315e-06,42.5,5.217257501779273,5.86829710006714,0.0153409133081634,0.0011073058858439,0.0021167258961273,0.0185649450901348,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1454 |
2024-07-17T15:22:24,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,1301.2742683887482,0.001577810731867,1.2125120508382074e-06,42.5,5.385808445047688,5.86829710006714,0.0153599237331085,0.00110971060999,0.0021193067597305,0.018588941102829,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1455 |
2024-07-17T15:22:25,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,1301.460983991623,0.0015782231828582,1.2126550102314813e-06,42.5,47.40646448240405,5.86829710006714,0.0153621162295341,0.00111213005637,0.0021195540988581,0.0185938003847622,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1456 |
+
2024-07-17T15:22:25,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,1301.6380498409271,0.001578526486192,1.2127230656671276e-06,42.5,25.406653533080583,5.86829710006714,0.0153641958157221,0.0011133661684699,0.0021198117618707,0.0185973737460628,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1457 |
+
2024-07-17T15:38:52,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,2288.5171308517456,0.0027620310146027,1.206908603552726e-06,42.5,2.495535684270491,5.86829710006714,0.0270148516332109,0.0017974736601999,0.0037284800247804,0.0325408053181914,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1458 |
+
2024-07-17T15:38:53,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,2289.660333633423,0.002763435942964,1.2069196039129735e-06,42.5,3.976370450813801,5.86829710006714,0.0270283123771349,0.0017987308834279,0.0037303141890311,0.0325573574495941,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1459 |
+
2024-07-17T15:40:11,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,2367.979481935501,0.0028577002692457,1.2068095568589869e-06,42.5,2.680087329975972,5.86829710006714,0.0279529370062881,0.0018570370411839,0.0038579564093635,0.0336679304568356,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1460 |
+
2024-07-17T15:40:12,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,2368.734210729599,0.0028592827976142,1.207093132130506e-06,42.5,40.9240496848996,5.86829710006714,0.0279618351886669,0.001865582325798,0.0038591574642019,0.0336865749786669,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1461 |
+
2024-07-17T15:40:31,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,2388.14070558548,0.0028829011616291,1.20717391353302e-06,42.5,3.25577464303164,5.86829710006714,0.0281909336353341,0.0018831309509479,0.0038907696086203,0.0339648341949025,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1462 |
+
2024-07-17T15:40:32,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,2389.0458261966705,0.0028844197708913,1.2073522153751512e-06,42.5,23.05630329295868,5.86829710006714,0.0282016072288155,0.0018889054000119,0.0038922130264147,0.0339827256552422,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1463 |
+
2024-07-17T15:40:32,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,2389.153689622879,0.002885049515813,1.2075612918264883e-06,42.5,206.3948172311821,5.86829710006714,0.0282028689159287,0.001894917349266,0.0038923587154603,0.0339901449806551,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1464 |
+
2024-07-17T15:40:32,codecarbon,ab520cd3-474e-4d7f-942c-88ee3dcfc7b0,2389.2317996025085,0.0028856729783351,1.2077827604735889e-06,42.5,303.4403588097568,5.86829710006714,0.0282037791838248,0.0019012479098859,0.0038924631964103,0.0339974902901212,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1465 |
+
2024-07-17T15:40:52,codecarbon,7be101d9-3837-4b30-b0cd-35fb8ac6d86d,0.0353074073791503,3.594991392129168e-08,1.018197499896883e-06,42.5,0.0,5.86829710006714,4.0501885943942603e-07,0.0,1.852423038599227e-08,4.235430898254183e-07,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1466 |
+
2024-07-17T15:40:55,codecarbon,7be101d9-3837-4b30-b0cd-35fb8ac6d86d,2.9465560913085938,4.07951053351188e-06,1.3845012302820716e-06,42.5,10.617333617992497,5.86829710006714,3.476188298728731e-05,8.574173525996431e-06,4.726603667819707e-06,4.806266018110345e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1467 |
+
2024-07-17T15:40:55,codecarbon,7be101d9-3837-4b30-b0cd-35fb8ac6d86d,3.134653329849243,4.90768471079844e-06,1.5656227960093017e-06,42.5,142.66868872355582,5.86829710006714,3.695883502562841e-05,1.587001269600513e-05,4.990927615003784e-06,5.781977533663733e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
1468 |
+
2024-07-17T15:40:55,codecarbon,7be101d9-3837-4b30-b0cd-35fb8ac6d86d,3.295675754547119,5.619689234022589e-06,1.7051705484888722e-06,42.5,142.90713601451236,5.86829710006714,3.884788536363178e-05,2.2142795492001432e-05,5.217559510329959e-06,6.620824036596318e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
empreinte_carbone.py
CHANGED
@@ -12,7 +12,9 @@ def load_svg_as_base64(file_path):
|
|
12 |
return base64.b64encode(svg_data).decode()
|
13 |
|
14 |
def color_scale(val):
|
15 |
-
if val
|
|
|
|
|
16 |
color = 'rgba(0,238,0,0.5)' # green with opacity
|
17 |
elif val <= 10:
|
18 |
color = 'rgba(110,238,0,0.5)' # light green with opacity
|
@@ -73,6 +75,7 @@ def display_carbon_footprint():
|
|
73 |
st.title("EMPREINTE ENERGETIQUE DE L'APPLICATION IA CARTO RSE")
|
74 |
display_cf_comparison(st)
|
75 |
table = get_table_empreintes_detailed()
|
|
|
76 |
styled_df = table[['Consommation Totale']].rename(columns={'Consommation Totale': 'Consommation Cumulée (g eqCo2)'})
|
77 |
styled_df = styled_df.style.applymap(color_scale, subset=['Consommation Cumulée (g eqCo2)'])
|
78 |
st.markdown("### DETAIL PAR TACHE")
|
|
|
12 |
return base64.b64encode(svg_data).decode()
|
13 |
|
14 |
def color_scale(val):
|
15 |
+
if val == '-':
|
16 |
+
color = 'white'
|
17 |
+
elif val <= 1:
|
18 |
color = 'rgba(0,238,0,0.5)' # green with opacity
|
19 |
elif val <= 10:
|
20 |
color = 'rgba(110,238,0,0.5)' # light green with opacity
|
|
|
75 |
st.title("EMPREINTE ENERGETIQUE DE L'APPLICATION IA CARTO RSE")
|
76 |
display_cf_comparison(st)
|
77 |
table = get_table_empreintes_detailed()
|
78 |
+
table.replace({0.00: '-'}, inplace=True)
|
79 |
styled_df = table[['Consommation Totale']].rename(columns={'Consommation Totale': 'Consommation Cumulée (g eqCo2)'})
|
80 |
styled_df = styled_df.style.applymap(color_scale, subset=['Consommation Cumulée (g eqCo2)'])
|
81 |
st.markdown("### DETAIL PAR TACHE")
|