Commit
·
932bf6b
1
Parent(s):
7ebfebe
Update models.py
Browse files
models.py
CHANGED
@@ -270,7 +270,11 @@ class ModelPage:
|
|
270 |
model_tco = cost_per_input_token * current_input_tokens + cost_per_output_token * current_output_tokens
|
271 |
formula = model.get_formula()
|
272 |
latency = model.get_latency()
|
|
|
|
|
|
|
|
|
273 |
|
274 |
-
return
|
275 |
|
276 |
begin = begin+model_n_args
|
|
|
270 |
model_tco = cost_per_input_token * current_input_tokens + cost_per_output_token * current_output_tokens
|
271 |
formula = model.get_formula()
|
272 |
latency = model.get_latency()
|
273 |
+
latency_info = f"""
|
274 |
+
<p> For the {current_model} service : </p>
|
275 |
+
{formula}
|
276 |
+
"""
|
277 |
|
278 |
+
return model_tco, latency_info, latency, labor_cost
|
279 |
|
280 |
begin = begin+model_n_args
|