erin99 commited on
Commit
b1ef7f7
·
verified ·
1 Parent(s): 6f87c2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(