Skip to content

Commit 3fde596

Browse files
committed
refacto: files reorg
1 parent 9270b01 commit 3fde596

16 files changed

Lines changed: 26 additions & 54 deletions

app.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
METHODOLOGY_TEXT,
1010
SUPPORT_TEXT,
1111
)
12-
from src.ui.calculator import calculator_mode
13-
from src.ui.company import company_mode
14-
from src.ui.expert import expert_mode
15-
from src.ui.expert_company import expert_company_mode
16-
from src.ui.token_estimator import token_estimator
12+
from src.ui.pages.calculator import calculator_mode
13+
from src.ui.pages.company import company_mode
14+
from src.ui.pages.expert import expert_mode
15+
from src.ui.pages.expert_company import expert_company_mode
16+
from src.ui.pages.token_estimator import token_estimator
1717

1818

1919
def _initialize_navigation_state() -> None:
@@ -176,7 +176,7 @@ def main():
176176
initial_sidebar_state="collapsed",
177177
)
178178

179-
with open("src/ui/style.css") as css:
179+
with open("src/ui/components/style.css") as css:
180180
st.markdown(f"<style>{css.read()}</style>", unsafe_allow_html=True)
181181

182182
_initialize_navigation_state()

src/config/models_recent.json

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
11
{
22
"last_updated": "2024-06-05",
33
"models": [
4-
{
5-
"provider": "anthropic",
6-
"name": "claude-opus-4-5-20251101"
7-
},
8-
{
9-
"provider": "anthropic",
10-
"name": "claude-opus-4-6"
11-
},
12-
{
13-
"provider": "anthropic",
14-
"name": "claude-opus-4-7"
15-
},
164
{
175
"provider": "anthropic",
186
"name": "claude-opus-4-8"
197
},
20-
{
21-
"provider": "anthropic",
22-
"name": "claude-sonnet-4-5-20250929"
23-
},
248
{
259
"provider": "anthropic",
2610
"name": "claude-sonnet-4-6"
@@ -29,18 +13,6 @@
2913
"provider": "anthropic",
3014
"name": "claude-haiku-4-5-20251001"
3115
},
32-
{
33-
"provider": "openai",
34-
"name": "gpt-4.1"
35-
},
36-
{
37-
"provider": "openai",
38-
"name": "gpt-4.1-mini"
39-
},
40-
{
41-
"provider": "openai",
42-
"name": "gpt-4.1-nano"
43-
},
4416
{
4517
"provider": "openai",
4618
"name": "gpt-5"

src/ui/components/__init__.py

Whitespace-only changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
format_wue_eq_pints,
1919
format_wue_eq_pools,
2020
)
21-
from src.ui.components import render_environment_card
21+
from src.ui.components.components import render_environment_card
2222

2323
EQUIVALENT_TITLES = {
2424
"at_scale": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import streamlit as st
22

3-
from src.ui.components import render_environment_card_html
3+
from src.ui.components.components import render_environment_card_html
44

55

66
def _format_quantity_value(value) -> str:

src/ui/pages/__init__.py

Whitespace-only changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
from src.core.impact_calculator import compute_scenario_impacts
66
from src.repositories.models import get_raw_model_names, load_models
77
from src.repositories.video_models import load_video_models
8-
from src.ui.components import render_model_selector
9-
from src.ui.equivalents import (
8+
from src.ui.components.components import render_model_selector
9+
from src.ui.components.equivalents import (
1010
display_equivalents,
1111
render_equivalents_title,
1212
)
13-
from src.ui.impacts import display_impacts
13+
from src.ui.components.impacts import display_impacts
1414

1515

1616
def _render_scenario_selector() -> Scenario:
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
format_country_name,
1212
)
1313
from src.repositories.models import get_raw_model_names, load_models
14-
from src.ui.components import (
14+
from src.ui.components.components import (
1515
display_electricity_mix_warnings,
1616
display_model_warnings,
1717
render_model_selector,
1818
)
19-
from src.ui.equivalents import display_equivalents
20-
from src.ui.impacts import display_impacts
19+
from src.ui.components.equivalents import display_equivalents
20+
from src.ui.components.impacts import display_impacts
2121

2222

2323
def company_mode():

0 commit comments

Comments
 (0)