Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ df = dataset["train"].to_pandas()
|
|
| 14 |
taraf_max = np.max(df['taraf_ID'].unique())
|
| 15 |
|
| 16 |
def plot_similarity_score(taraf_num):
|
| 17 |
-
embed_taraf = df[df['taraf_ID']== taraf_num]['embed']to_list()
|
| 18 |
cos_score = cosine_similarity(embed_taraf)
|
| 19 |
fig = px.imshow(cos_score)
|
| 20 |
fig.write_html("test1.html")
|
|
|
|
| 14 |
taraf_max = np.max(df['taraf_ID'].unique())
|
| 15 |
|
| 16 |
def plot_similarity_score(taraf_num):
|
| 17 |
+
embed_taraf = df[df['taraf_ID']== taraf_num]['embed'].to_list()
|
| 18 |
cos_score = cosine_similarity(embed_taraf)
|
| 19 |
fig = px.imshow(cos_score)
|
| 20 |
fig.write_html("test1.html")
|