Spaces:
Running
Running
Ilyas KHIAT
commited on
Commit
•
7997ba5
1
Parent(s):
45e3f0f
emission export fin
Browse files- chart.png +0 -0
- emissions.csv +16 -1
- empreinte_export.py +7 -3
- temp.html +0 -0
chart.png
ADDED
emissions.csv
CHANGED
@@ -1534,4 +1534,19 @@ timestamp,project_name,run_id,duration,emissions,emissions_rate,cpu_power,gpu_po
|
|
1534 |
2024-07-17T17:39:05,codecarbon,0e982497-2996-49ae-9833-756cbf260795,75.20528650283813,9.81529782190052e-05,1.3051340242590665e-06,42.5,4.173040456411446,5.86829710006714,0.0008873098320431,0.0001474673401959,0.0001216098989917,0.0011563870712308,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
|
1535 |
2024-07-17T17:39:06,codecarbon,0e982497-2996-49ae-9833-756cbf260795,76.6559624671936,9.9892750556032e-05,1.3031308634182635e-06,42.5,2.563720000037294,5.86829710006714,0.0009044476949506,0.0001484990076879,0.0001239374566473,0.0011768841592859,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
|
1536 |
2024-07-17T17:39:08,codecarbon,0e982497-2996-49ae-9833-756cbf260795,78.16366982460022,0.0001020702921026,1.3058533757656115e-06,42.5,13.026447574554894,5.86829710006714,0.0009222350724869,0.0001539415120419,0.0001263622307573,0.0012025388152862,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
|
1537 |
-
2024-07-17T17:39:12,codecarbon,0e982497-2996-49ae-9833-756cbf260795,82.34570670127869,0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1534 |
2024-07-17T17:39:05,codecarbon,0e982497-2996-49ae-9833-756cbf260795,75.20528650283813,9.81529782190052e-05,1.3051340242590665e-06,42.5,4.173040456411446,5.86829710006714,0.0008873098320431,0.0001474673401959,0.0001216098989917,0.0011563870712308,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
|
1535 |
2024-07-17T17:39:06,codecarbon,0e982497-2996-49ae-9833-756cbf260795,76.6559624671936,9.9892750556032e-05,1.3031308634182635e-06,42.5,2.563720000037294,5.86829710006714,0.0009044476949506,0.0001484990076879,0.0001239374566473,0.0011768841592859,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
|
1536 |
2024-07-17T17:39:08,codecarbon,0e982497-2996-49ae-9833-756cbf260795,78.16366982460022,0.0001020702921026,1.3058533757656115e-06,42.5,13.026447574554894,5.86829710006714,0.0009222350724869,0.0001539415120419,0.0001263622307573,0.0012025388152862,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
|
1537 |
+
2024-07-17T17:39:12,codecarbon,0e982497-2996-49ae-9833-756cbf260795,82.34570670127869,0.000107570377258,1.306326480970176e-06,42.5,7.466976654644801,5.86829710006714,0.0009715885665681,0.0001626084634199,0.0001331409129433,0.0012673379429315,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
|
1538 |
+
2024-07-17T18:12:29,codecarbon,90464351-d7c7-41f4-b07b-cbb7971e07dd,0.1921546459197998,8.57637900146494e-07,4.463269134301593e-06,42.5,279.8566563177729,5.86829710006714,1.458527810043759e-06,8.514451256005917e-06,1.3126226745441728e-07,1.0104241333504093e-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
|
1539 |
+
.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
1540 |
+
2024-07-17T18:12:39,codecarbon,161258ac-b508-4cd2-b278-f000ae4044c9,0.0394165515899658,4.029877777282077e-08,1.022382124951781e-06,42.5,0.0,5.86829710006714,4.535689949989321e-07,0.0,2.121013497221233e-08,4.747791299711443e-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
|
1541 |
+
2024-07-17T18:12:45,codecarbon,161258ac-b508-4cd2-b278-f000ae4044c9,6.649947881698608,8.367171733447031e-06,1.2582311744840004e-06,42.5,5.089761685103695,5.86829710006714,7.847642617093193e-05,9.341118583999776e-06,1.076009792991414e-05,9.857764268484584e-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
|
1542 |
+
2024-07-17T18:12:48,codecarbon,161258ac-b508-4cd2-b278-f000ae4044c9,9.235650539398192,1.194682071191109e-05,1.293554867732096e-06,42.5,10.432179710565723,5.86829710006714,0.0001089900554882,1.6825291237997086e-05,1.4935848644975638e-05,0.0001407511953711,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
|
1543 |
+
2024-07-17T18:12:50,codecarbon,161258ac-b508-4cd2-b278-f000ae4044c9,11.55007553100586,1.511112841485545e-05,1.3083142507847712e-06,42.5,9.70695966641097,5.86829710006714,0.0001363013686405,2.3057518445994407e-05,1.867252721919964e-05,0.0001780314143057,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
|
1544 |
+
2024-07-17T18:12:52,codecarbon,161258ac-b508-4cd2-b278-f000ae4044c9,13.80187702178955,1.8342815011329656e-05,1.3290087270282986e-06,42.5,12.62952258344472,5.86829710006714,0.0001628723886277,3.0939746973997206e-05,2.2293320533762352e-05,0.0002161054561355,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
|
1545 |
+
2024-07-17T18:13:00,codecarbon,161258ac-b508-4cd2-b278-f000ae4044c9,22.0078353881836,2.8335750499655304e-05,1.2875301000692363e-06,42.5,3.313972760691329,5.86829710006714,0.0002597245555784,3.849003079199609e-05,3.5622410998176694e-05,0.0003338369973686,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
|
1546 |
+
2024-07-17T18:13:01,codecarbon,161258ac-b508-4cd2-b278-f000ae4044c9,22.256301164627075,2.8835222694127147e-05,1.2955981535672352e-06,42.5,38.18792117715884,5.86829710006714,0.0002626458613408,4.109197731799047e-05,3.598367896181288e-05,0.0003397215176206,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
|
1547 |
+
2024-07-17T18:13:02,codecarbon,161258ac-b508-4cd2-b278-f000ae4044c9,23.672548055648804,3.1097931937194174e-05,1.3136706646065297e-06,42.5,19.783617806529147,5.86829710006714,0.0002793052145176,4.883031684199679e-05,3.8244043531604e-05,0.0003663795748912,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
|
1548 |
+
2024-07-17T18:13:05,codecarbon,161258ac-b508-4cd2-b278-f000ae4044c9,26.38185214996338,3.501576750358472e-05,1.3272672178034825e-06,42.5,12.975370556447851,5.86829710006714,0.0003113153499033,5.859588020999673e-05,4.262623502623882e-05,0.0004125374651396,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
|
1549 |
+
2024-07-17T18:13:09,codecarbon,161258ac-b508-4cd2-b278-f000ae4044c9,30.170949459075928,3.959411956343663e-05,1.3123259384707917e-06,42.5,2.9425893446481792,5.86829710006714,0.0003560254227783,6.168977157399586e-05,4.876202101815627e-05,0.0004664772153705,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
|
1550 |
+
2024-07-17T18:13:26,codecarbon,161258ac-b508-4cd2-b278-f000ae4044c9,47.24970531463623,6.082695831552333e-05,1.2873510619902503e-06,42.5,4.372465760609494,5.86829710006714,0.0005576376333832,8.242951038799073e-05,7.65642764330651e-05,0.0007166314202043,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
|
1551 |
+
2024-07-17T18:13:26,codecarbon,161258ac-b508-4cd2-b278-f000ae4044c9,47.522823095321655,6.172655562472033e-05,1.2988823391427883e-06,42.5,95.54273838380864,5.86829710006714,0.000560813815395,8.946562712799921e-05,7.695056283424046e-05,0.0007272300053572,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
|
1552 |
+
2024-07-17T18:13:41,codecarbon,161258ac-b508-4cd2-b278-f000ae4044c9,62.91723895072937,8.074986975415777e-05,1.2834299645188368e-06,42.5,4.056912318334414,5.86829710006714,0.0007425415494375759,0.00010681036322599674,0.00010200083364773812,0.0009513527463113109,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_export.py
CHANGED
@@ -74,8 +74,8 @@ def display_cf_comparison():
|
|
74 |
html_content += f"""
|
75 |
<br>
|
76 |
<div style='display: flex; align-items: center;'>
|
77 |
-
|
78 |
-
|
79 |
</div>
|
80 |
<br>
|
81 |
"""
|
@@ -137,7 +137,11 @@ def get_carbon_footprint_html():
|
|
137 |
html_content += """
|
138 |
<h2>SYNTHESE (Dialogue IA et non IA)</h2>
|
139 |
"""
|
140 |
-
|
|
|
|
|
|
|
|
|
141 |
|
142 |
return html_content
|
143 |
|
|
|
74 |
html_content += f"""
|
75 |
<br>
|
76 |
<div style='display: flex; align-items: center;'>
|
77 |
+
<p>Powered by <b>ADEME</b></p>
|
78 |
+
<a href='https://www.ademe.fr' target='_blank'><img src='https://www.ademe.fr/wp-content/uploads/2022/11/ademe-logo-2022-1.svg' alt='svg' width='30' height='30' style='margin-left: 10px;'></a>
|
79 |
</div>
|
80 |
<br>
|
81 |
"""
|
|
|
137 |
html_content += """
|
138 |
<h2>SYNTHESE (Dialogue IA et non IA)</h2>
|
139 |
"""
|
140 |
+
chart.save("chart.png")
|
141 |
+
with open("chart.png", "rb") as image_file:
|
142 |
+
encoded_image = base64.b64encode(image_file.read()).decode()
|
143 |
+
|
144 |
+
html_content += f'<img src="data:image/png;base64,{encoded_image}" alt="Pie chart">'
|
145 |
|
146 |
return html_content
|
147 |
|
temp.html
CHANGED
The diff for this file is too large to render.
See raw diff
|
|