Spaces:
Running
Running
Ilyas KHIAT
commited on
Commit
•
dffe458
1
Parent(s):
9a03021
conso carbon
Browse files- app.py +1 -1
- comparateur.py +1 -0
- emissions.csv +13 -1
app.py
CHANGED
@@ -141,7 +141,7 @@ def main():
|
|
141 |
st.sidebar.write("\n")
|
142 |
col1,col2,col3 = st.sidebar.columns([1,1,1])
|
143 |
display_comparaison(col1,st.session_state['emission'].stop(),dict_comparaison_1kgCO2["eau en litre"][0]*1000,dict_comparaison_1kgCO2["eau en litre"][1],"ml")
|
144 |
-
display_comparaison(col2,st.session_state['emission'].stop(),dict_comparaison_1kgCO2["
|
145 |
display_comparaison(col3,st.session_state['emission'].stop(),dict_comparaison_1kgCO2["voiture en km"][0]*1000,dict_comparaison_1kgCO2["voiture en km"][1],"m")
|
146 |
|
147 |
|
|
|
141 |
st.sidebar.write("\n")
|
142 |
col1,col2,col3 = st.sidebar.columns([1,1,1])
|
143 |
display_comparaison(col1,st.session_state['emission'].stop(),dict_comparaison_1kgCO2["eau en litre"][0]*1000,dict_comparaison_1kgCO2["eau en litre"][1],"ml")
|
144 |
+
display_comparaison(col2,st.session_state['emission'].stop(),dict_comparaison_1kgCO2["tgv en km"][0],dict_comparaison_1kgCO2["tgv en km"][1],"km")
|
145 |
display_comparaison(col3,st.session_state['emission'].stop(),dict_comparaison_1kgCO2["voiture en km"][0]*1000,dict_comparaison_1kgCO2["voiture en km"][1],"m")
|
146 |
|
147 |
|
comparateur.py
CHANGED
@@ -3,6 +3,7 @@ dict_comparaison_1kgCO2 = {
|
|
3 |
"eau en litre":[374/100,"https://impactco2.fr/icons/eauenbouteille.svg"],
|
4 |
"smartphones": [1.16/100,"https://impactco2.fr/icons/smartphone.svg"],
|
5 |
"voiture en km": [460/100,"https://impactco2.fr/icons/voiturethermique.svg"],
|
|
|
6 |
}
|
7 |
|
8 |
def compare(value_init, ratio_equivalent):
|
|
|
3 |
"eau en litre":[374/100,"https://impactco2.fr/icons/eauenbouteille.svg"],
|
4 |
"smartphones": [1.16/100,"https://impactco2.fr/icons/smartphone.svg"],
|
5 |
"voiture en km": [460/100,"https://impactco2.fr/icons/voiturethermique.svg"],
|
6 |
+
"tgv en km":[34130/100,"https://impactco2.fr/icons/tgv.svg"],
|
7 |
}
|
8 |
|
9 |
def compare(value_init, ratio_equivalent):
|
emissions.csv
CHANGED
@@ -319,4 +319,16 @@ timestamp,project_name,run_id,duration,emissions,emissions_rate,cpu_power,gpu_po
|
|
319 |
2024-07-03T16:24:24,codecarbon,8ed6a728-2614-4fdd-b4e9-de1fef188f27,622.9902830123901,0.000811575605224,1.3027098934831186e-06,42.5,5.858474221232035,5.86829710006714,0.0073545097200406,0.001192337898314,0.0010147118395098,0.0095615594578645,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
320 |
2024-07-03T16:24:24,codecarbon,8ed6a728-2614-4fdd-b4e9-de1fef188f27,623.0267543792725,0.0008116138618033,1.3026950385332744e-06,42.5,0.0,5.86829710006714,0.0073549286940031,0.001192337898314,0.0010147435845624,0.0095620101768796,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
321 |
2024-07-03T16:24:24,codecarbon,8ed6a728-2614-4fdd-b4e9-de1fef188f27,623.0977890491486,0.0008121472785492,1.3034026003985311e-06,42.5,277.7352158333838,5.86829710006714,0.0073557788885302,0.0011977395693019,0.0010147761562565,0.0095682946140887,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
322 |
-
2024-07-03T16:24:24,codecarbon,8ed6a728-2614-4fdd-b4e9-de1fef188f27,623.1428136825562,0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
2024-07-03T16:24:24,codecarbon,8ed6a728-2614-4fdd-b4e9-de1fef188f27,622.9902830123901,0.000811575605224,1.3027098934831186e-06,42.5,5.858474221232035,5.86829710006714,0.0073545097200406,0.001192337898314,0.0010147118395098,0.0095615594578645,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
320 |
2024-07-03T16:24:24,codecarbon,8ed6a728-2614-4fdd-b4e9-de1fef188f27,623.0267543792725,0.0008116138618033,1.3026950385332744e-06,42.5,0.0,5.86829710006714,0.0073549286940031,0.001192337898314,0.0010147435845624,0.0095620101768796,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
321 |
2024-07-03T16:24:24,codecarbon,8ed6a728-2614-4fdd-b4e9-de1fef188f27,623.0977890491486,0.0008121472785492,1.3034026003985311e-06,42.5,277.7352158333838,5.86829710006714,0.0073557788885302,0.0011977395693019,0.0010147761562565,0.0095682946140887,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
322 |
+
2024-07-03T16:24:24,codecarbon,8ed6a728-2614-4fdd-b4e9-de1fef188f27,623.1428136825562,0.0008121961307108,1.3033868206087102e-06,42.5,0.0,5.86829710006714,0.0073563104293412,0.0011977395693019,0.001014820166072,0.0095688701647153,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
323 |
+
2024-07-03T17:04:03,codecarbon,4074b12f-fd55-408c-8efb-5c90dab5dd55,0.0377974510192871,6.187979874506651e-07,1.6371421108129954e-05,42.5,720.6531893174471,5.86829710006714,4.2757838964462283e-07,6.84972770198522e-06,1.3048265168246568e-08,7.290354356798089e-06,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
324 |
+
2024-07-03T17:04:03,codecarbon,4074b12f-fd55-408c-8efb-5c90dab5dd55,0.1279785633087158,8.520725695629581e-07,6.6579319812143e-06,42.5,66.11440290814755,5.86829710006714,1.4804174502690634e-06,8.450840094001433e-06,1.0741597406687717e-07,1.0038673518337374e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
325 |
+
2024-07-03T17:04:03,codecarbon,4074b12f-fd55-408c-8efb-5c90dab5dd55,0.2042286396026611,9.341197807262278e-07,4.573892195255342e-06,42.5,0.0,5.86829710006714,2.3687900768386e-06,8.450840094001433e-06,1.856806919909105e-07,1.1005310862830944e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
326 |
+
2024-07-03T17:04:04,codecarbon,4074b12f-fd55-408c-8efb-5c90dab5dd55,0.2990083694458008,1.6304036145099637e-06,5.452702268942662e-06,42.5,276.81876092217163,5.86829710006714,3.4756875700420806e-06,1.5465845705997516e-05,2.670296725102617e-07,1.920856294854986e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
327 |
+
2024-07-03T17:10:28,codecarbon,6779ec6b-fc7b-41d2-a74e-ae9a639f8c1d,0.0339331626892089,4.551150918894347e-07,1.3412103553617917e-05,42.5,559.0198181078571,5.86829710006714,3.888204693794251e-07,4.961670636016713e-06,1.1436955601690596e-08,5.3619280609978285e-06,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
328 |
+
2024-07-03T17:10:28,codecarbon,6779ec6b-fc7b-41d2-a74e-ae9a639f8c1d,0.1004729270935058,6.930448039831697e-07,6.89782635015881e-06,42.5,110.89481313092703,5.86829710006714,1.1624533269140455e-06,6.9338944359981225e-06,6.874376718561357e-08,8.165091530097782e-06,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
329 |
+
2024-07-03T17:10:29,codecarbon,6779ec6b-fc7b-41d2-a74e-ae9a639f8c1d,0.1787195205688476,1.118424041273373e-06,6.257984789314189e-06,42.5,193.9499908523912,5.86829710006714,2.068364123503367e-06,1.096084210201742e-05,1.47481073733123e-07,1.3176687299253913e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
330 |
+
2024-07-03T17:10:29,codecarbon,6779ec6b-fc7b-41d2-a74e-ae9a639f8c1d,0.2743756771087646,1.687847185324289e-06,6.151591872537642e-06,42.5,215.88362728685635,5.86829710006714,3.1858025325669187e-06,1.645667983200816e-05,2.4285070160487976e-07,1.988533306617996e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
331 |
+
2024-07-03T17:10:51,codecarbon,3f8f6a69-de73-4cba-97b7-9cc8067c0f30,0.0281393527984619,6.696633823498567e-07,2.3798108902720044e-05,42.5,1039.164257487644,5.86829710006714,3.203931781980727e-07,7.559450491995134e-06,9.780174925803448e-09,7.889623845119011e-06,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
332 |
+
2024-07-03T17:10:51,codecarbon,3f8f6a69-de73-4cba-97b7-9cc8067c0f30,0.0660829544067382,7.101376166877089e-07,1.074615417943993e-05,42.5,0.0,5.86829710006714,7.683384749624465e-07,7.559450491995134e-06,3.8681145646345766e-08,8.366470112603928e-06,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
333 |
+
2024-07-03T17:10:51,codecarbon,3f8f6a69-de73-4cba-97b7-9cc8067c0f30,0.1158812046051025,1.1744946948914037e-06,1.0135333843774072e-05,42.5,365.4082275229901,5.86829710006714,1.344702806737688e-06,1.2411121040001303e-05,8.145857755209818e-08,1.3837282424291092e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|
334 |
+
2024-07-03T17:10:51,codecarbon,3f8f6a69-de73-4cba-97b7-9cc8067c0f30,0.1745901107788086,1.2379830445610576e-06,7.090797061979535e-06,42.5,0.0,5.86829710006714,2.0377940601772732e-06,1.2411121040001305e-05,1.363538657736285e-07,1.4585268965952207e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16,12th Gen Intel(R) Core(TM) i5-12500H,1,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
|