Nanboy commited on
Commit
90ab8fd
·
verified ·
1 Parent(s): 8245f32

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -244,9 +244,17 @@ def make_sim_bar(model_name: str) -> go.Figure:
244
  height=320,
245
  showlegend=False,
246
  )
247
- fig.add_hline(y=clean_sim, line_dash="dot", line_color="#1565c0",
248
- annotation_text="Clean baseline", annotation_position="top right",
249
- annotation_font_size=10)
 
 
 
 
 
 
 
 
250
  return fig
251
 
252
 
 
244
  height=320,
245
  showlegend=False,
246
  )
247
+ fig.add_trace(go.Scatter(
248
+ x=labels,
249
+ y=[clean_sim] * len(labels),
250
+ mode="lines+text",
251
+ line=dict(color="#1565c0", dash="dot", width=1.5),
252
+ text=[""] * (len(labels) - 1) + ["Clean baseline"],
253
+ textposition="top right",
254
+ textfont=dict(size=10, color="#1565c0"),
255
+ hoverinfo="skip",
256
+ showlegend=False,
257
+ ))
258
  return fig
259
 
260