Margerie commited on
Commit
a8aafdc
·
verified ·
1 Parent(s): 4af20e1

Delete pages/8_🌏_Environmental_Impact.py

Browse files
pages/8_🌏_Environmental_Impact.py DELETED
@@ -1,56 +0,0 @@
1
- import streamlit as st
2
- from persist import persist, load_widget_state
3
- from pathlib import Path
4
-
5
-
6
-
7
- global variable_output
8
-
9
- def main():
10
-
11
- cs_body()
12
-
13
-
14
- def cs_body():
15
-
16
- stateVariable = 'Model_carbon'
17
- help_text ='Provide an estimate for the carbon emissions: e.g hardware used, horus spent training, cloud provider '
18
-
19
- st.markdown('# Environmental Impact')
20
- st.markdown('###### Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).')
21
- st.text_area("", help="Provide an estimate for the carbon emissions: e.g hardware used, horus spent training, cloud provider")
22
-
23
- left, right = st.columns([2,4])
24
- with left:
25
- st.write("\n")
26
- st.write("\n")
27
- st.markdown('### Hardware Type:')
28
- st.write("\n")
29
- st.write("\n")
30
- #st.write("\n")
31
- st.markdown('### Hours used:')
32
- st.write("\n")
33
- st.write("\n")
34
- st.markdown('### Cloud Provider:')
35
- st.write("\n")
36
- st.write("\n")
37
- st.markdown('### Compute Region:')
38
- st.write("\n")
39
- st.write("\n")
40
- st.markdown('### Carbon Emitted:')
41
- with right:
42
- #soutput_jinja = parse_into_jinja_markdown()
43
- st.text_input("",key=persist("Model_hardware"))
44
- #st.write("\n")
45
- st.text_input("",help="sw",key=persist("hours_used"))
46
- st.text_input("",key=persist("Model_cloud_provider"))
47
- st.text_input("",key=persist("Model_cloud_region"))
48
- st.text_input("",help= 'in grams of CO2eq', key=persist("Model_c02_emitted")) ##to-do: auto calculate
49
-
50
-
51
-
52
-
53
-
54
- if __name__ == '__main__':
55
- load_widget_state()
56
- main()