joaogante HF staff commited on
Commit
792fc21
1 Parent(s): f1b3224

fiddle with plots

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -160,6 +160,11 @@ def get_plot(model_name, plot_eager, generate_type):
160
  g.despine(left=True)
161
  g.set_axis_labels("GPU", "Generation time (ms)")
162
  g.legend.set_title("Framework")
 
 
 
 
 
163
  plt.savefig(FIGURE_PATH, dpi=1200)
164
  return FIGURE_PATH
165
 
 
160
  g.despine(left=True)
161
  g.set_axis_labels("GPU", "Generation time (ms)")
162
  g.legend.set_title("Framework")
163
+
164
+ # Add the number to the top of each bar
165
+ for i in g.containers:
166
+ g.bar_label(i,)
167
+
168
  plt.savefig(FIGURE_PATH, dpi=1200)
169
  return FIGURE_PATH
170