now with labels
Browse files
app.py
CHANGED
|
@@ -151,8 +151,8 @@ def get_plot(model_name, generate_type):
|
|
| 151 |
ci="sd", palette="dark", alpha=.6, height=6
|
| 152 |
)
|
| 153 |
g.despine(left=True)
|
| 154 |
-
|
| 155 |
-
|
| 156 |
return plt.gcf()
|
| 157 |
|
| 158 |
demo = gr.Blocks()
|
|
|
|
| 151 |
ci="sd", palette="dark", alpha=.6, height=6
|
| 152 |
)
|
| 153 |
g.despine(left=True)
|
| 154 |
+
g.set_axis_labels("GPU", "Generation time (ms)")
|
| 155 |
+
g.legend.set_title(f"{generate_type} generation time for {model_name}")
|
| 156 |
return plt.gcf()
|
| 157 |
|
| 158 |
demo = gr.Blocks()
|