Ilyas KHIAT commited on
Commit
d2c34f2
·
1 Parent(s): 06fde26

conso carbon

Browse files
Files changed (3) hide show
  1. app.py +1 -1
  2. chat_with_pps.py +0 -1
  3. emissions.csv +5 -1
app.py CHANGED
@@ -141,7 +141,7 @@ def main():
141
  st.sidebar.markdown("(avec les outils code carbon, Ecologits)")
142
  c1,c2,c3 = st.sidebar.columns([1,1,1])
143
 
144
- c2.text("--------")
145
 
146
  st.sidebar.markdown("**Votre équivalence:**")
147
  col1,col2,col3 = st.sidebar.columns([1,1,1])
 
141
  st.sidebar.markdown("(avec les outils code carbon, Ecologits)")
142
  c1,c2,c3 = st.sidebar.columns([1,1,1])
143
 
144
+ c2.write("---")
145
 
146
  st.sidebar.markdown("**Votre équivalence:**")
147
  col1,col2,col3 = st.sidebar.columns([1,1,1])
chat_with_pps.py CHANGED
@@ -137,7 +137,6 @@ def disp_carto_in_chat():
137
  @st.experimental_dialog("Télécharger",width="small")
138
  def dowmload_history(used_models=None):
139
  brand_name = st.session_state['Nom de la marque']
140
- st.markdown(f"**l'emission en kgCO2eq jusqu'a maintenant d'apres codecarbon:** \n{st.session_state['emission'].stop()} **kgCO2eq**")
141
  format = st.radio("Choisissez le document à télécharger",[f"Rapport des parties prenantes (PDF)",f"Tableau des parties prenantes (CSV)",f"Historique de conversation (Fichier Texte)"],index=None)
142
  if format == f"Rapport des parties prenantes (PDF)":
143
  with st.spinner("Generation en cours..."):
 
137
  @st.experimental_dialog("Télécharger",width="small")
138
  def dowmload_history(used_models=None):
139
  brand_name = st.session_state['Nom de la marque']
 
140
  format = st.radio("Choisissez le document à télécharger",[f"Rapport des parties prenantes (PDF)",f"Tableau des parties prenantes (CSV)",f"Historique de conversation (Fichier Texte)"],index=None)
141
  if format == f"Rapport des parties prenantes (PDF)":
142
  with st.spinner("Generation en cours..."):
emissions.csv CHANGED
@@ -588,4 +588,8 @@ timestamp,project_name,run_id,duration,emissions,emissions_rate,cpu_power,gpu_po
588
  2024-07-08T17:06:55,codecarbon,7899baa8-d3bd-43eb-8c24-f17c325095a9,38.229190826416016,5.752663315829885e-05,1.5047829136511171e-06,42.5,8.327542665019653,5.86829710006714,0.0004507062286138,0.000166657633326,6.038485279874371e-05,0.0006777487147386,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
589
  2024-07-08T17:06:55,codecarbon,7899baa8-d3bd-43eb-8c24-f17c325095a9,38.338247299194336,5.7702107930096485e-05,1.505079444028446e-06,42.5,24.26175006440353,5.86829710006714,0.0004519642144441,0.000167348467212,6.05033850987952e-05,0.0006798160667549,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
590
  2024-07-08T17:06:55,codecarbon,7899baa8-d3bd-43eb-8c24-f17c325095a9,38.42948722839356,5.780181930814849e-05,1.5041007173637677e-06,42.5,0.0,5.86829710006714,0.0004530353206727,0.000167348467212,6.060702619350367e-05,0.0006809908140782,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
591
- 2024-07-08T17:06:55,codecarbon,7899baa8-d3bd-43eb-8c24-f17c325095a9,38.555631160736084,5.861160465104231e-05,1.5201827304212474e-06,42.5,230.9587305815181,5.86829710006714,0.00045451270673010083,0.00017524791797601802,6.07706568952466e-05,0.0006905312816013655,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
 
 
 
 
 
588
  2024-07-08T17:06:55,codecarbon,7899baa8-d3bd-43eb-8c24-f17c325095a9,38.229190826416016,5.752663315829885e-05,1.5047829136511171e-06,42.5,8.327542665019653,5.86829710006714,0.0004507062286138,0.000166657633326,6.038485279874371e-05,0.0006777487147386,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
589
  2024-07-08T17:06:55,codecarbon,7899baa8-d3bd-43eb-8c24-f17c325095a9,38.338247299194336,5.7702107930096485e-05,1.505079444028446e-06,42.5,24.26175006440353,5.86829710006714,0.0004519642144441,0.000167348467212,6.05033850987952e-05,0.0006798160667549,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
590
  2024-07-08T17:06:55,codecarbon,7899baa8-d3bd-43eb-8c24-f17c325095a9,38.42948722839356,5.780181930814849e-05,1.5041007173637677e-06,42.5,0.0,5.86829710006714,0.0004530353206727,0.000167348467212,6.060702619350367e-05,0.0006809908140782,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
591
+ 2024-07-08T17:06:55,codecarbon,7899baa8-d3bd-43eb-8c24-f17c325095a9,38.55563116073608,5.861160465104231e-05,1.5201827304212474e-06,42.5,230.9587305815181,5.86829710006714,0.0004545127067301,0.000175247917976,6.07706568952466e-05,0.0006905312816013,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
592
+ 2024-07-08T17:09:08,codecarbon,667f48c6-0694-41cb-9f45-6355fa01c495,0.023066759109497,2.3180373037381307e-08,1.0049254395619652e-06,42.5,0.0,5.86829710006714,2.5986383358637495e-07,0.0,1.3235201951052508e-08,2.7309903553742745e-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
593
+ 2024-07-08T17:09:08,codecarbon,667f48c6-0694-41cb-9f45-6355fa01c495,0.0740168094635009,7.765361163504198e-08,1.0491348140767182e-06,42.5,0.0,5.86829710006714,8.495668570200603e-07,0.0,6.53073949744491e-08,9.148742519945092e-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
594
+ 2024-07-08T17:09:08,codecarbon,667f48c6-0694-41cb-9f45-6355fa01c495,0.1255295276641845,7.882962089624682e-07,6.279767188093872e-06,42.5,560.3033010807372,5.86829710006714,1.4577031135559084e-06,7.706395053985737e-06,1.2319561493067493e-07,9.28729378247232e-06,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
595
+ 2024-07-08T17:09:08,codecarbon,667f48c6-0694-41cb-9f45-6355fa01c495,0.17869234085083008,8.457001253481773e-07,4.732716138371908e-06,42.5,0.0,5.86829710006714,2.073483996921116e-06,7.706395053985737e-06,1.8371766145046802e-07,9.963596712357322e-06,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