sashavor commited on
Commit
0e83308
1 Parent(s): 32ac110

adding fancy magic lambda

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ with st.expander("Calculate the emissions produced by energy consumption of mode
92
  st.markdown('This is roughly equivalent to '+ str(round(dynamic_emissions/kg_per_mile,1)) + ' miles driven in an average US car'
93
  ' produced in 2021. [(Source: energy.gov)](https://www.energy.gov/eere/vehicles/articles/fotw-1223-january-31-2022-average-carbon-dioxide-emissions-2021-model-year)')
94
  st.form_submit_button(label="Share my data", help="Submit the data from your model anonymously for research purposes!",\
95
- on_click = write_to_csv(hardware, training_time, provider, carbon_intensity, dynamic_emissions))
96
 
97
 
98
 
 
92
  st.markdown('This is roughly equivalent to '+ str(round(dynamic_emissions/kg_per_mile,1)) + ' miles driven in an average US car'
93
  ' produced in 2021. [(Source: energy.gov)](https://www.energy.gov/eere/vehicles/articles/fotw-1223-january-31-2022-average-carbon-dioxide-emissions-2021-model-year)')
94
  st.form_submit_button(label="Share my data", help="Submit the data from your model anonymously for research purposes!",\
95
+ on_click = lambda *args: write_to_csv(hardware, training_time, provider, carbon_intensity, dynamic_emissions))
96
 
97
 
98