dustalov commited on
Commit
35f4425
1 Parent(s): 1b3b7fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -128,6 +128,7 @@ def handler(file: typing.IO[bytes], seed: int) -> typing.Tuple[pd.DataFrame, Fig
128
 
129
  df_pairwise = pd.DataFrame(data=scores[:, np.newaxis] / (scores + scores[:, np.newaxis]),
130
  index=index, columns=index)
 
131
 
132
  fig = visualize(df_pairwise)
133
 
 
128
 
129
  df_pairwise = pd.DataFrame(data=scores[:, np.newaxis] / (scores + scores[:, np.newaxis]),
130
  index=index, columns=index)
131
+ df_pairwise = df_pairwise.reindex(labels=df_result['item'], columns=df_result['item'], copy=False)
132
 
133
  fig = visualize(df_pairwise)
134