Spaces:
Runtime error
Runtime error
Commit
·
2804169
1
Parent(s):
a9eec04
Update results.py
Browse files- results.py +1 -1
results.py
CHANGED
|
@@ -98,7 +98,7 @@ def update_plot(tco1, tco2, dropdown, dropdown2, labour_cost1, labour_cost2):
|
|
| 98 |
"AI model service": ["1)" + " " + dropdown] * len(request_ranges) + ["2)" + " " + dropdown2] * len(request_ranges)
|
| 99 |
}
|
| 100 |
)
|
| 101 |
-
return gr.LinePlot.update(data, visible=True, x="Number of requests", y="Cost ($)", color="AI model service", color_legend_title=" ", color_legend_position="
|
| 102 |
else:
|
| 103 |
return ""
|
| 104 |
|
|
|
|
| 98 |
"AI model service": ["1)" + " " + dropdown] * len(request_ranges) + ["2)" + " " + dropdown2] * len(request_ranges)
|
| 99 |
}
|
| 100 |
)
|
| 101 |
+
return gr.LinePlot.update(data, visible=True, x="Number of requests", y="Cost ($)", color="AI model service", color_legend_title=" ", color_legend_position="right", title="TCO for one month", height=300, width=500, tooltip=["Number of requests", "Cost ($)", "AI model service"])
|
| 102 |
else:
|
| 103 |
return ""
|
| 104 |
|