Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
388f2fa
1
Parent(s):
99c632e
:memo: copy edit for widget output
Browse files
carbon_footprint_gradio.py
CHANGED
@@ -37,11 +37,11 @@ llama32_3b_pipe = pipeline(
|
|
37 |
)
|
38 |
|
39 |
def calc_co2e_response(co2grams: float):
|
40 |
-
response = f"""
|
41 |
|
42 |
-
|
43 |
|
44 |
-
|
45 |
"""
|
46 |
return response
|
47 |
|
|
|
37 |
)
|
38 |
|
39 |
def calc_co2e_response(co2grams: float):
|
40 |
+
response = f"""Your query just produced approximately {co2grams:.4f} grams of CO2e.
|
41 |
|
42 |
+
On average, eight queries are sent per user per day to ChatGPT. If you were to run this specific query using this (our?? what is it? you could specifi if you want?) model seven more times, it would generate approximately {co2grams*8:.4f} grams of CO2e.
|
43 |
|
44 |
+
The average number of queries sent to ChatGPT per day globally is 1 billion. Using this model, running this query 1 billion times would equate to roughly {co2grams*1e3:.4f} metric tonnes of CO2e emissions.
|
45 |
"""
|
46 |
return response
|
47 |
|