Spaces:
Runtime error
Runtime error
sashavor
commited on
Commit
·
9ca002e
1
Parent(s):
db8cc8e
thanks Nima!
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def write_to_csv(hardware, training_time, provider, carbon_intensity, dynamic_em
|
|
14 |
writer = csv.writer(f)
|
15 |
writer.writerow([hardware, training_time, provider, carbon_intensity, dynamic_emissions])
|
16 |
api.upload_file(
|
17 |
-
path_or_fileobj=
|
18 |
path_in_repo="dynamic_emissions.csv",
|
19 |
repo_id="sasha/co2_submissions",
|
20 |
repo_type="dataset",
|
@@ -62,7 +62,7 @@ st.markdown('## Estimate your model\'s CO2 carbon footprint!')
|
|
62 |
st.markdown('Building on the work of the [ML CO2 Calculator](https://mlco2.github.io/impact/), this tool allows you to consider'
|
63 |
' other aspects of your model\'s carbon footprint based on the LCA methodology.')
|
64 |
|
65 |
-
st.markdown('
|
66 |
|
67 |
st.markdown('### Dynamic Emissions')
|
68 |
with st.expander("Calculate the emissions produced by energy consumption of model training"):
|
|
|
14 |
writer = csv.writer(f)
|
15 |
writer.writerow([hardware, training_time, provider, carbon_intensity, dynamic_emissions])
|
16 |
api.upload_file(
|
17 |
+
path_or_fileobj=CACHED_FILE_PATH,
|
18 |
path_in_repo="dynamic_emissions.csv",
|
19 |
repo_id="sasha/co2_submissions",
|
20 |
repo_type="dataset",
|
|
|
62 |
st.markdown('Building on the work of the [ML CO2 Calculator](https://mlco2.github.io/impact/), this tool allows you to consider'
|
63 |
' other aspects of your model\'s carbon footprint based on the LCA methodology.')
|
64 |
|
65 |
+
st.markdown('You can use this tool to calculate different aspects of your model: the dynamic emissions, idle emissions embodied emissions.')
|
66 |
|
67 |
st.markdown('### Dynamic Emissions')
|
68 |
with st.expander("Calculate the emissions produced by energy consumption of model training"):
|