Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def code_similarity(code1, code2, model):
|
|
25 |
else:
|
26 |
v1 = uae.encode(code1)
|
27 |
v2 = uae.encode(code2)
|
28 |
-
return cosine_similarity(v1, v2)
|
29 |
|
30 |
|
31 |
demo = gr.Interface(
|
|
|
25 |
else:
|
26 |
v1 = uae.encode(code1)
|
27 |
v2 = uae.encode(code2)
|
28 |
+
return cosine_similarity(v1[0], v2[0])
|
29 |
|
30 |
|
31 |
demo = gr.Interface(
|