jadehardouin
commited on
Commit
•
94ce651
1
Parent(s):
947c3f0
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def update_plot(tco1, tco2, dropdown, dropdown2, labour_cost1, labour_cost2):
|
|
92 |
data = pd.DataFrame({
|
93 |
"Number of requests": request_ranges * 2,
|
94 |
"Cost ($)": costs_tco1 + costs_tco2,
|
95 |
-
"AI model service": [dropdown] * len(request_ranges) + [dropdown2] * len(request_ranges)
|
96 |
}
|
97 |
)
|
98 |
return gr.LinePlot.update(data, x="Number of requests", y="Cost ($)",color="AI model service",color_legend_position="bottom", title="Total Cost of Model Serving for one month", height=300, width=500, tooltip=["Number of requests", "Cost ($)", "AI model service"])
|
|
|
92 |
data = pd.DataFrame({
|
93 |
"Number of requests": request_ranges * 2,
|
94 |
"Cost ($)": costs_tco1 + costs_tco2,
|
95 |
+
"AI model service": ["1)" + " " + dropdown] * len(request_ranges) + ["2)" + " " + dropdown2] * len(request_ranges)
|
96 |
}
|
97 |
)
|
98 |
return gr.LinePlot.update(data, x="Number of requests", y="Cost ($)",color="AI model service",color_legend_position="bottom", title="Total Cost of Model Serving for one month", height=300, width=500, tooltip=["Number of requests", "Cost ($)", "AI model service"])
|