Spaces:
Running
Running
piotr-szleg-bards-ai
commited on
Commit
•
79d529c
1
Parent(s):
40be773
2024-01-26 17:26:50 Publish script update
Browse files- app.py +3 -2
- pipeline/models.py +1 -1
app.py
CHANGED
@@ -29,7 +29,6 @@ with open("data/time_of_day_plot.json", "r") as f:
|
|
29 |
time_of_day_plot = plotly.io.from_json(f.read())
|
30 |
|
31 |
|
32 |
-
|
33 |
searched_model_name = ""
|
34 |
collapse_languages = False
|
35 |
collapse_output_method = False
|
@@ -135,7 +134,9 @@ with gr.Blocks() as demo:
|
|
135 |
|
136 |
with gr.Tab("Costs comparison"):
|
137 |
models_costs_ui = gr.DataFrame(dataframe_style(model_costs_df), label="Costs comparison")
|
138 |
-
gr.Markdown(
|
|
|
|
|
139 |
filter_button.click(
|
140 |
fn=filter_dataframes,
|
141 |
inputs=filter_textbox,
|
|
|
29 |
time_of_day_plot = plotly.io.from_json(f.read())
|
30 |
|
31 |
|
|
|
32 |
searched_model_name = ""
|
33 |
collapse_languages = False
|
34 |
collapse_output_method = False
|
|
|
134 |
|
135 |
with gr.Tab("Costs comparison"):
|
136 |
models_costs_ui = gr.DataFrame(dataframe_style(model_costs_df), label="Costs comparison")
|
137 |
+
gr.Markdown(
|
138 |
+
'Note that pause and resume time cost was not included in the "Cost per token" column calculation for the models billed hourly.'
|
139 |
+
)
|
140 |
filter_button.click(
|
141 |
fn=filter_dataframes,
|
142 |
inputs=filter_textbox,
|
pipeline/models.py
CHANGED
@@ -21,7 +21,7 @@ class Model(object):
|
|
21 |
def __post_init__(self):
|
22 |
self.cost_per_million_input_tokens = self.cost_per_million_input_tokens or self.cost_per_million_tokens
|
23 |
self.cost_per_million_output_tokens = self.cost_per_million_output_tokens or self.cost_per_million_tokens
|
24 |
-
|
25 |
@property
|
26 |
def cost(self):
|
27 |
if self.cost_description:
|
|
|
21 |
def __post_init__(self):
|
22 |
self.cost_per_million_input_tokens = self.cost_per_million_input_tokens or self.cost_per_million_tokens
|
23 |
self.cost_per_million_output_tokens = self.cost_per_million_output_tokens or self.cost_per_million_tokens
|
24 |
+
|
25 |
@property
|
26 |
def cost(self):
|
27 |
if self.cost_description:
|