Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ taraf_max = np.max(df['taraf_ID'].unique())
|
|
| 15 |
|
| 16 |
def plot_similarity_score(taraf_num):
|
| 17 |
taraf_df = df[df['taraf_ID']== taraf_num]
|
| 18 |
-
taraf_df['Number'] = np.arange(len(
|
| 19 |
embed_taraf = taraf_df['embed'].to_list()
|
| 20 |
cos_score = cosine_similarity(embed_taraf)
|
| 21 |
fig = px.imshow(cos_score)
|
|
|
|
| 15 |
|
| 16 |
def plot_similarity_score(taraf_num):
|
| 17 |
taraf_df = df[df['taraf_ID']== taraf_num]
|
| 18 |
+
taraf_df['Number'] = np.arange(len(taraf_df))
|
| 19 |
embed_taraf = taraf_df['embed'].to_list()
|
| 20 |
cos_score = cosine_similarity(embed_taraf)
|
| 21 |
fig = px.imshow(cos_score)
|