carolinejean-pierre commited on
Commit
a992708
·
1 Parent(s): 5be190e

Update Welcome banner

Browse files
app.py CHANGED
@@ -25,15 +25,16 @@ with open( "src/style.css" ) as css:
25
 
26
  st.html(HERO_TEXT)
27
 
28
- st.markdown(INTRO_TEXT)
29
 
30
- tab_calculator, tab_expert, tab_token, tab_method, tab_about = st.tabs(
31
  [
32
  '🧮 Calculator',
33
  '🤓 Expert Mode',
34
  '🪙 Tokens estimator',
35
  '📖 Methodology',
36
- 'ℹ️ About'
 
37
  ]
38
  )
39
 
 
25
 
26
  st.html(HERO_TEXT)
27
 
28
+ st.markdown(INTRO_TEXT, unsafe_allow_html=True)
29
 
30
+ tab_calculator, tab_expert, tab_token, tab_method, tab_about, tab_support = st.tabs(
31
  [
32
  '🧮 Calculator',
33
  '🤓 Expert Mode',
34
  '🪙 Tokens estimator',
35
  '📖 Methodology',
36
+ 'ℹ️ About',
37
+ '🩷 Support us'
38
  ]
39
  )
40
 
src/__pycache__/__init__.cpython-312.pyc CHANGED
Binary files a/src/__pycache__/__init__.cpython-312.pyc and b/src/__pycache__/__init__.cpython-312.pyc differ
 
src/__pycache__/calculator.cpython-312.pyc CHANGED
Binary files a/src/__pycache__/calculator.cpython-312.pyc and b/src/__pycache__/calculator.cpython-312.pyc differ
 
src/__pycache__/constants.cpython-312.pyc CHANGED
Binary files a/src/__pycache__/constants.cpython-312.pyc and b/src/__pycache__/constants.cpython-312.pyc differ
 
src/__pycache__/content.cpython-312.pyc CHANGED
Binary files a/src/__pycache__/content.cpython-312.pyc and b/src/__pycache__/content.cpython-312.pyc differ
 
src/__pycache__/electricity_mix.cpython-312.pyc CHANGED
Binary files a/src/__pycache__/electricity_mix.cpython-312.pyc and b/src/__pycache__/electricity_mix.cpython-312.pyc differ
 
src/__pycache__/expert.cpython-312.pyc CHANGED
Binary files a/src/__pycache__/expert.cpython-312.pyc and b/src/__pycache__/expert.cpython-312.pyc differ
 
src/__pycache__/impacts.cpython-312.pyc CHANGED
Binary files a/src/__pycache__/impacts.cpython-312.pyc and b/src/__pycache__/impacts.cpython-312.pyc differ
 
src/__pycache__/models.cpython-312.pyc CHANGED
Binary files a/src/__pycache__/models.cpython-312.pyc and b/src/__pycache__/models.cpython-312.pyc differ
 
src/__pycache__/token_estimator.cpython-312.pyc CHANGED
Binary files a/src/__pycache__/token_estimator.cpython-312.pyc and b/src/__pycache__/token_estimator.cpython-312.pyc differ
 
src/__pycache__/utils.cpython-312.pyc CHANGED
Binary files a/src/__pycache__/utils.cpython-312.pyc and b/src/__pycache__/utils.cpython-312.pyc differ
 
src/content.py CHANGED
@@ -1,29 +1,44 @@
1
  HERO_TEXT = """
2
  <div align="center">
3
  <a href="https://ecologits.ai/">
4
- <img style="max-height: 80px" alt="EcoLogits" src="https://raw.githubusercontent.com/genai-impact/ecologits/main/docs/assets/logo_light.png">
5
  </a>
6
  </div>
7
  <div align="center">
8
- <p style="max-width: 500px; text-align: center">
9
- <i><b>EcoLogits</b> is a python library that tracks the <b>energy consumption</b> and <b>environmental
10
- footprint</b> of using <b>generative AI</b> models through APIs.</i>
11
- </p>
12
- </div>
13
- <h1 align="center">🧮 EcoLogits Calculator</h1>
14
- <div align="center">
15
- <p style="max-width: 500px; text-align: center">
16
- <i>allows a broader access to <b>EcoLogits</b> through a visual application.</i>
17
  </p>
 
18
  </div>
19
  <br>
20
  """
21
 
22
  INTRO_TEXT = """
23
- This tool is developed and maintained by [GenAI Impact](https://genai-impact.org/) non-profit. Learn more about
24
- 🌱 EcoLogits by reading the documentation on [ecologits.ai](https://ecologits.ai).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
- 🩷 Support us by giving a ⭐️ on our [GitHub repository](https://github.com/genai-impact/ecologits) and by following our [LinkedIn page](https://www.linkedin.com/company/genai-impact/).
27
  """
28
 
29
  WARNING_CLOSED_SOURCE = """
 
1
  HERO_TEXT = """
2
  <div align="center">
3
  <a href="https://ecologits.ai/">
4
+ <img style="max-height: 200px" alt="EcoLogits" src="https://raw.githubusercontent.com/genai-impact/ecologits/main/docs/assets/logo_calculator.png">
5
  </a>
6
  </div>
7
  <div align="center">
8
+ <p style="max-width: 850px; text-align: center">
9
+ <b>EcoLogits</b> is a python library that tracks the <b>energy consumption</b> and <b>environmental
10
+ footprint</b> of using <b>generative AI</b> models through APIs.
11
+ <br>
12
+ This Calculator allows a broader access to <b>EcoLogits</b> estimates through a visual application.</i>
13
+
 
 
 
14
  </p>
15
+
16
  </div>
17
  <br>
18
  """
19
 
20
  INTRO_TEXT = """
21
+ <div style="background-color:#d4edda; padding:5px; border-radius:10px; color:#155724;">
22
+ <p>
23
+ EcoLogits Calculator is developed and maintained by
24
+ <a href = "https://genai-impact.org/" > GenAI Impact </a> non-profit.
25
+ To learn more about EcoLogits documentation visit
26
+ <a href="https://ecologits.ai" > ecologits.ai </a>
27
+ </p>
28
+
29
+ </div>
30
+ <br>
31
+ """
32
+
33
+ ALT_INTRO_TEXT = """
34
+ <p>
35
+ This tool is developed and maintained by
36
+ <a href = "https://genai-impact.org/" > GenAI Impact </a> non-profit.
37
+ To learn more about EcoLogits visit
38
+ <a href="https://ecologits.ai" > ecologits.ai </a>
39
+ </p>
40
 
41
+
42
  """
43
 
44
  WARNING_CLOSED_SOURCE = """