Update app.py
Browse files
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 |
|